Skip to main content

Update a grant's role and scope

PUT 

/rbac/grants/:identifier

Full-replace (PUT) semantics: atomically replaces both the role and scope with the values supplied. To update only one dimension, resend the current value for the other.

Guards:

  • Only Admins may mutate Admin grants (old role = Admin or new role = Admin requires the caller to hold an Admin grant).
  • Demoting the entity's last Admin is rejected (RBAC_CANNOT_REVOKE_LAST_OWNER).
  • Admin role cannot be given a non-empty scope (RBAC_SCOPED_OWNER_FORBIDDEN).
  • Sub-account IDs must all belong to the entity (RBAC_SUB_ACCOUNT_NOT_IN_ENTITY).

Returns a flat RbacGrantForDisplay (same shape as POST). Sends an access-updated notification email to the recipient.

Requires GRANT_UPDATE permission.

Request

Responses

Grant updated