Documentation for version v72
Account Activation and Deactivation
Description
Allows you to activate and deactivate an account in the admin panel.
Request URL
Method: POST
https://example.com/api/v1.1/admin/accounts/activate - for account
activation
https://example.com/api/v1.1/admin/accounts/deactivate - for account
deactivation
Request Parameters
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
| token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
| id | int | 1 | Yes | Account identifier |
Request Example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"id": 7
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<id>7</id>
</xml>
Response Example
- JSON
- XML
{
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| error | int | Error code |
| error_text | string | Error message text |