Update a user role pairing by id
PATCH/user_roles/:id
Update a user role pairing by id
Request
Path Parameters
id uuidrequired
ID of the object to retrieve, update, or delete
- application/json
Body
required
user_role
object
user_id uuid
role_id uuid
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
user_role
object
id uuid
uid string
Possible values: >= 32 characters
and <= 32 characters
user_id uuid
role_id uuid
{
"user_role": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"uid": "string",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"role_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- InvalidJson
- ValidationErrors
oneOf
error
error
errors
{}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...