Delete Org Workspace Privileges
curl --request DELETE \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Organizations
Delete Org Workspace Privileges
Delete workspace privileges for an organization. Requires the
orgs:workspace-privileges:delete permission, held by Owner and
SuperAdmin by default.
Bare IDs work even when the underlying workspace has been deleted, so orphan rows can be cleaned up. Authorization is enforced before workspace resolution, so non-authorized callers always get 403 (never 404).
DELETE
/
v2
/
orgs
/
{orgSlug}
/
workspaces
/
{workspaceIdOrSlug}
/
privileges
Delete Org Workspace Privileges
curl --request DELETE \
--url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/workspaces/{workspaceIdOrSlug}/privileges"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Workspace ID, or slug:<workspaceSlug> for slug addressing.
Response
Deleted
Was this page helpful?