Skip to main content

Update virtual sender

Description

Updates a virtual sender, changes settings.

Request URL

Method: POST

https://example.com/api/v1.1/vsenders/update

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format.
By default – json
idint1YesVirtual sender ID
namestring"New virtual sender"YesVirtual sender name
email_rulesJSON array
YesRules for email senders
sms_rulesJSON array
YesRules for SMS senders

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"name": "Virtual sender",
"email_rules": [
{
"senders": [
{
"from_email": "",
"from_name": "",
"percent": 100,
"replyto_email": "",
"sender_id": 3
}
],
"type": "default",
"value": ""
}
],
"id": 9,
"sms_rules": []
}

Response example

{
"data": {
"saved_id": 9
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
saved_idintVirtual sender ID