Skip to content

Toggle account activation

Request

Deactivates the specified account if it is active, and activates it otherwise.

Security
SessionKey(Required scopes: administrator)
Path
numberstringrequired

Alphanumeric identifier of the user account

Bodyapplication/json
reasonstringrequired

Reason for activating/deactivating the account.

curl -i -X POST \
  'https://docs.ticketingevents.com/_mock/openapi/accounts/{number}/toggles' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "reason": "Account suspected of fraud."
  }'

Responses

The account's activation status was successfully toggled.

Bodyapplication/json
messagestring

Reason for the given response.

Response
{ "message": "The account was deactivated successfully." }