Update User Role
PATCH/users/roles
Updates an SDP user’s role by user_ID
.
Request
- application/json
Body
user_id string
roles string[]
Responses
- 200
- 401
- 403
OK
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
message string
{
"message": "user roles were updated successfully"
}
{
"message": "user roles were updated successfully"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
extras object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...