Documentation for version v73
Delete a user
Description
Delete an account user
Request URL
Method: POST
https://example.com/api/v1.1/admin/accounts/add
Request parameters
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
| token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
| format | string | "json" | No | Response data format (By default – json) |
| account_id | int | 1 | Yes | Account identificator |
| name | string | "example" | Yes | User name to be used in the login |
Request example
- JSON
- XML
{
"token": "aabcdefghijklmnqrstuvwxyz",
"format": "json",
"account_id": 1,
"name": "example"
}
<xml>
<token>aabcdefghijklmnqrstuvwxyz</token>
<format>json</format>
<account_id>1</account_id>
<name>Example</name>
</xml>
Response example
- JSON
- XML
{
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data/>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
| Parameter | Type | Description |
|---|---|---|
| error | int | Error code |
| error_text | string | Error text |