POST
/
v2
/
{subjectType}
/
{subjectId}
/
permissions
curl --request POST \
  --url https://api.eda.prisme.ai/v2/{subjectType}/{subjectId}/permissions \
  --header 'Content-Type: application/json' \
  --header 'X-Prismeai-API-Key: <api-key>' \
  --data '{
  "target": {
    "id": "<string>",
    "public": true,
    "role": "<string>",
    "displayName": "<string>"
  },
  "permissions": {
    "role": "<string>",
    "policies": {
      "read": true,
      "write": true,
      "update": true,
      "create": true,
      "manage_permissions": true
    }
  }
}'
{
  "target": {
    "id": "<string>",
    "public": true,
    "role": "<string>",
    "displayName": "<string>"
  },
  "permissions": {
    "role": "<string>",
    "policies": {
      "read": true,
      "write": true,
      "update": true,
      "create": true,
      "manage_permissions": true
    }
  }
}

Authorizations

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

Path Parameters

subjectType
enum<string>
required

The target subject type

Available options:
pages,
workspaces
subjectId
string
required

The target subject id (i.e workspaceId if subjectType is 'workspace')

Body

application/json
target
object
required
permissions
object
required

Response

200
application/json
Success Response
target
object
required
permissions
object
required