Skip to content
Navigation

Revoke a role grant on a resource from a subject

Revokes an existing role grant (unshares). Authorization: same as createGrant — org admin, or the caller holds the resource’s share permission on the target (space:share/spacetype:share; settings is admin-only); otherwise 403 forbidden. Body is the SAME shape as createGrant: subject (exactly one of organizationMembershipId/groupId), role, resourceType, resourceExternalId. Returns 204 No Content on success.

DELETE
https://api.cloudraker.com/authorization/grants
Try it
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Request body JSON required

  • subject
    object
    required
    • organizationMembershipId
      optional
      string
      minLength: 1
    • groupId
      optional
      string
      minLength: 1
  • role
    string
    required
    minLength: 1
  • resourceType
    space
    or
    spacetype
    or
    settings
    required
  • resourceExternalId
    string
    required
    minLength: 1

Returns

204

The role grant was revoked

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

403

Caller is not an admin and lacks the resource’s share permission

Type to search…

↑↓ navigate↵ selectEsc close