Skip to main content
Sets the permission level a member or access group holds on the resource. Use List Permission Level Options to see which levels you may set.
  • Changes that give someone an admin role, or that reduce what an admin can reach, also require the team owner or an admin.

Path Parameters

string
required
Resource type — one of the values in the table above
string
required
Identifier of the resource, as listed in the table above
string
required
members (access groups cannot hold permission levels). One of: members, access-groups.
string
required
principal_id of the member

Headers

string
Optional. Retrying with the same value replays the first result.

Request Body

string
required
The member’s final level on this instance. none removes every level set here — it is not a deny: the member keeps whatever their role, access scope or access groups give them. Not every type has every level (database connections have read and manage only); grantable_levels on the access view lists them. One of: read, write, manage, none.
string
required
Why the change is made; recorded in the audit log
string
Projects only: the project’s workspace, so the project can be shown by name in access scopes

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.