PUT
/
v2
/
workspaces
/
{workspaceId}
/
security
curl --request PUT \
  --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/security \
  --header 'Content-Type: application/json' \
  --header 'X-Prismeai-API-Key: <api-key>' \
  --data '{
  "authorizations": {
    "roles": {},
    "rules": [
      {
        "role": [
          "<string>"
        ],
        "inverted": true,
        "reason": "<string>",
        "action": "manage",
        "subject": "apps",
        "conditions": {},
        "priority": 123
      }
    ]
  },
  "authentication": {
    "clientId": "<string>"
  }
}'
{
  "authorizations": {
    "roles": {},
    "rules": [
      {
        "role": [
          "<string>"
        ],
        "inverted": true,
        "reason": "<string>",
        "action": "manage",
        "subject": "apps",
        "conditions": {},
        "priority": 123
      }
    ]
  },
  "authentication": {
    "clientId": "<string>"
  }
}

Authorizations

X-Prismeai-API-Key
string
header
required
connect.sid
string
cookie
required

Path Parameters

workspaceId
string
required

Workspace id

Body

application/json
authorizations
object
authentication
object

Response

200
application/json
Success Response
authorizations
object
authentication
object