Remove a user from an account
PUT/users/remove/:id
Remove a user from an account
Request
Path Parameters
id uuidrequired
Unique identifier of the user to remove
Header Parameters
sub-account stringrequired
Sub-account identifier required for all requests
- application/json
Body
required
account_id stringrequired
Unique identifier of the account from which the user is removed.
Responses
- 200
- 400
- 404
User removed from account
- application/json
- Schema
- Example (from schema)
Schema
account_id uuidrequired
Unique identifier of the account
user_id uuidrequired
Unique identifier of the user
user_role stringrequired
Possible values: [admin
, user
]
Role of the user
{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"user_role": "admin"
}
Bad Request
User not found
Loading...