Create a custom role
Authentication
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Path parameters
Workspace identifier.
Either a positive integer organization ID, or the literal string my to target the caller’s own Workspace.
Request
Optional free-text description of the role.
Omit it or pass null to store an empty string.
When provided, it must be 2 to 250 characters.
Leading and trailing whitespace is trimmed before validation and storage.
IDs of permissions to assign.
May be empty, and mutually exclusive with permissions.
Deprecated or deleted permissions are rejected.
Omit the field to send no value, because an explicit null is rejected.
Resource and action pairs of permissions to assign, resolved to permission IDs on the server.
Mutually exclusive with permission_ids.
Deprecated or deleted permissions are rejected.
Omit the field to send no value, because an explicit null is rejected.
Response
Human-readable description of the role. An empty string when no description has been set.
Whether this is a system-defined role or an organization’s custom role.
True for built-in system roles, which can’t be modified or deleted.