Update User Activation Status
PATCH/users/activation
Updates the SDP user’s activation status. This endpoint is primarily used to move a user into active status when they accept the invite to join an SDP organization account and create a password.
Request
- */*
Body
user_id string
is_active boolean
Responses
- 200
- 401
- 403
Created
- application/json
- Schema
- Example (from schema)
- Example
Schema
id stringrequired
first_name stringrequired
last_name stringrequired
email stringrequired
roles string[]required
is_active booleanrequired
[
{
"id": "7a4c6555-1f73-49b3-a211-f95bd2b8ec90",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"developer"
],
"is_active": true
},
{
"id": "5f4df1dd-c84f-482a-84ad-541ffd46e75a",
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"financial_controller"
],
"is_active": false
}
]
{
"message": "user activation was updated successfully"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
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
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...