v1

latestOpenAPI 3.0.32026-07-17542197.8 KB
Organization
Role
Permission

Add permission to organization role

Add a permission to an organization's role. Only organization-scoped resources (Organization, Namespace, Document, Project, Role) are allowed.

post/v1/organizations/{id}/roles/{role_id}/permissions

Request body

targetstring required

Resource ID string in the format "ResourceType:id" or "ResourceType:00000000000000000000" for system-level permissions.

kind'*' | 'create' | 'write' | 'read' | 'delete' required

Kind of a permission.

Example request

{
  "target": "Organization:9bsv0s46s6s002p9ltq0"
}

Response

Example response

idstring required

ID of the newly created resource.