Grant_role
POST
Grant a Project role with project grant role permission.
bearerAuthheader
AuthorizationBearer <token>project_id*stringapplication/json- body
A Project role and the principal receiving it.
principal*||The identity or membership role that receives a Project role.
role*authorization.RoleProject authorization role.
Value in
"admin""editor""viewer"Success
application/json- response
The created Project role grant.
grant*A role granted to a principal in one Project.
curl -X POST 'https://api.spiraldb.dev/api/authorization/projects/string/grants' \ -H 'Content-Type: application/json' \ -d '{ "principal": { "organizationRole": { "organizationId": "string", "role": "string" }, "type": "organizationRole" }, "role": "admin"}'{ "grant": { "conditions": { "property1": "string", "property2": "string" }, "id": "string", "principal": "string", "projectId": "string", "role": "admin" }}