Create a custom role
Create a custom role that you can assign to users, Teams, and API tokens.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the Organization where you want to create the custom role.
Body
The request body for creating the custom role.
The role's name.
"Deployment_Viewer"
The permissions included in the role.
1The scope of the role.
DEPLOYMENT, DAG "DEPLOYMENT"
The role's description.
"Subject can only view deployments."
The IDs of the Workspaces that the role is restricted to.
Response
OK
The time the role was created.
"2022-11-22T04:37:12Z"
The role's ID.
"cluc9tapx000901qn2xrgqdmn"
The role's name.
"Deployment_Viewer"
The role's permissions.
The IDs of Workspaces that the role is restricted to.
The role's scope.
DEPLOYMENT, WORKSPACE, ORGANIZATION "DEPLOYMENT"
The time the role was last updated.
"2022-11-22T04:37:12Z"
The role's description.
"Subject can only view deployments."