Add permission to role
This endpoint documentation is generated directly from openapi.yaml.
Endpoint
POST /roles/permissions
Operation
Operation ID: addRolePermission
Add permission to role
Authentication
Security requirements:
Scheme | Scopes |
|---|---|
BearerAuth | - |
Request Body
Required: yes.
Content type: application/json
{
"properties": {
"permission": {
"type": "string"
},
"role_id": {
"type": "integer"
}
},
"required": [
"role_id",
"permission"
],
"type": "object"
}
Responses
Status | Description | Content Types |
|---|---|---|
200 | Success | application/json |
Schema for response 200 (application/json):
{}
17 March 2026