Set account status
PATCH/v1/admin/account/:account_id
Set account status
The patch_account_status endpoint allows an admin to update the active status of a user account. It requires the account ID and the new status (active or inactive) as input. The endpoint checks if the requesting user is an admin, verifies that the target account exists, and ensures the account is not already in the desired state before updating. Successful updates trigger activity logging.
Request
Path Parameters
account_id uuidrequired
Account id
- application/json
Body
required
account_status booleanrequired
Responses
- 200
- 400
- 403
- 500
Account status changed
- text/plain
- Schema
Schema
string
Account is already in this status
- text/plain
- Schema
Schema
string
User is not admin
- text/plain
- Schema
Schema
string
Unexpected error
- text/plain
- Schema
Schema
string
Loading...