Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Add Project Role

Deprecated: use project v2 service AddProjectRole instead.

Add a new project role to a project. The key must be unique within the project.

POST
/management/v1/projects/{project_id}/roles

Path Parameters

project_id*project_id

Request Body

application/json
  1. body
roleKey*role_key
displayName*display_name
group?group

Response Body

Success

application/json
  1. response
details?
Example Request
curl -X POST 'https://example.com/management/v1/projects/string/roles' \  -H 'Content-Type: application/json' \  -d '{  "roleKey": "string",  "displayName": "string"}'
Example Response200
{  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  }}

Was this page helpful?