Skip to main content

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

Body

required
    account_status booleanrequired

Responses

Account status changed

Schema

    string

Loading...