Permission
Create grant
Changed onCreate 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
- Base URL: https://example.com/api
- URL: https://example.com/api/v1/permissions
- Auth: OAuth 2 (authorization code, authorization URL /oauth/authorize, token URL /oauth/token; client credentials, token URL /oauth/token; password, token URL /oauth/token)
Request body
Example request
{
"principal": {
"id": "9bsv0s46s6s002p9ltq0"
},
"scope": {
"id": "9bsv0s46s6s002p9ltq0"
},
"role_id": "9bsv0s46s6s002p9ltq0"
}Response
Example response
Changes
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
added the new
Extensionenum value to the request property/
- info