Update User Role
Updates an SDP user’s role by user_ID
.
- application/json
Request 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 numbermessage 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...