Clone virtual sender
Description
Creates a copy of an existing virtual sender.
Request URL
Method: POST
https://example.com/api/v1.1/vsenders/clone
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format. By default– json |
id | int | 1 | Yes | Existing virtual sender ID |
name | string | "Clone of ..." | No | New virtual sender name. By default – "Clone of ..." |
Request example
- JSON
- XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"name": "Copy of virtual sender #99",
"id": 3
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<name>Copy of virtual sender #99</name>
<id>3</id>
</xml>
Response example
- JSON
- XML
{
"data": {
"saved_id": 6
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<data>
<saved_id>7</saved_id>
</data>
</xml>
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
saved_id | int | New virtual sender ID |