OpenAPI 3.0.3raw.githubusercontent.com2026-08-209564185.3 KB

e51f70b36692

Permission

Create grant

Create a new grant for a principal on the given scope. Either role_id or actions is required. Grants are immutable; delete and recreate to change them.

post/v1/permissions

Request body

role_idstring

Optional role whose bundled actions are granted on the scope.

actionsAction[]

Optional explicit actions granted on the scope.

Example request

{
  "principal": {
    "id": "9bsv0s46s6s002p9ltq0"
  },
  "scope": {
    "id": "9bsv0s46s6s002p9ltq0"
  },
  "role_id": "9bsv0s46s6s002p9ltq0"
}

Response

Example response

idstring required

ID of the newly created resource.