Set Role Permissions
PUT/user-svc/role/:roleId/permissions
Set permissions for a specified role. The caller can add permissions it owns to any role.
If the caller tries to add a permission it doesn't own to a role, StatusBadRequest
will be returned.
Request
Path Parameters
roleId stringrequired
Role ID
- application/json
Body
required
Set Role Permissions Request
permissionIds string[]
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Loading...