Skip to content

Create role.

POST
/backend/v1/auth/roles

Create a new role associated with a given resource.

Currently available resources to associate with a role are the organization and projects.

Authorizations

HTTPBearer
Type
HTTP (bearer)

Request Body

application/json
JSON
{
  
"isDefault": true,
  
"name": "string",
  
"permissions": [
  
  
"string"
  
],
  
"projectId": "string"
}

Responses

Successful Response

application/json
JSON
{
  
"id": "string"
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI

Updated at: