Skip to main content
DELETE
/
v2
/
{subjectType}
/
{subjectId}
/
permissions
/
{id}
Revoke Permissions
curl --request DELETE \
  --url https://api.studio.prisme.ai/v2/{subjectType}/{subjectId}/permissions/{id} \
  --header 'Authorization: Bearer <token>'
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.studio.prisme.ai/v2/{subjectType}/{subjectId}/permissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.studio.prisme.ai/v2/{subjectType}/{subjectId}/permissions/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "id": "<string>"
}
{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}
{
"error": "AuthenticationError",
"message": "Unauthenticated"
}
{
"error": "ForbiddenError",
"message": "Forbidden"
}
{
"error": "ObjectNotFound",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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')

id
string
required

The target permission id

Response

Success Response

id
string
required