Update a grant
PATCH/grants/:id
Changing the abilities applies to every group the grant is attached to, at once. A grant attached to a sponsored group must keep every ability rooted on a cluster (409 otherwise).
Requires grant:write and at least the org-admin role.
Request
Responses
- 200
- 400
- 401
- 404
- 409
- 422
The grant
INVALID_GRANT_PATH: an ability path does not follow the resource hierarchy or names a resource the organization does not own. Or an ID is not a valid integer
UNAUTHORIZED: the token lacks the grant:read / grant:write ability, or the caller lacks the required role in the organization
The grant does not exist in the current organization
GRANT_NAME_ALREADY_EXISTS: the name is taken. SPONSORED_GROUP_CLUSTER_ONLY: the change breaks a sponsored group's cluster-data rule
Validation failed