ZITADEL Docs
APIsCore ResourcesV1Organization Objects

BulkAddProjectRoles

Bulk Add Project Role

Deprecated: use project v2 service AddProjectRole instead.

Add a list of roles to a project. The keys must be unique within the project.

POST
/projects/{project_id}/roles/_bulk

Path Parameters

project_id*string

Request Body

application/json

roles?
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/projects/string/roles/_bulk" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?