Post API v1 user by ID roles
Changed onpost/api/v1/user/{id}/roles
Request
- The document declares no server URL.
- Auth: HTTP bearer
Path parameters
idstring required
ID of the user
Example:1
Request body
Example request
{
"$schema": "https://example.com/schemas/AssignRoleRequest.json",
"role_id": "1"
}Response
OK
Example response
{
"$schema": "https://example.com/schemas/AssignRoleResponse.json",
"role": {
"id": "1",
"name": "user"
},
"user_id": "1"
}Changes
- ○
endpoint added
- ○