Create a custom role
Create a custom role that you can assign to users, Teams, and API tokens.
Path parameters
organizationId
The ID of the Organization where you want to create the custom role.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
The role’s name.
permissions
The permissions included in the role.
scopeType
The scope of the role.
Allowed values:
description
The role’s description.
restrictedWorkspaceIds
The IDs of the Workspaces that the role is restricted to.
Response
OK
createdAt
The time the role was created.
createdBy
id
The role’s ID.
name
The role’s name.
permissions
The role’s permissions.
restrictedWorkspaceIds
The IDs of Workspaces that the role is restricted to.
scopeType
The role’s scope.
Allowed values:
updatedAt
The time the role was last updated.
updatedBy
description
The role’s description.