{{baseUrl}}/messages/:id

PUT {{baseUrl}}/messages/:id

If a message exists with 'transaction = true', this method allows integrating the initial POST call (adding recipients for example) until a PUT with 'transaction = false' is passed. At that point the message is closed and put in the sending queue. With this method you can also change the sending date of the message ('timestamp_send') (if it hasn't already been sent or scheduled for sending).

Request Body

{"recipients"=>"<string>", "transaction"=>"<boolean>", "options"=>{"timestamp_send"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;test&quot;:false,&quot;sender&quot;:&quot;alberto&quot;,&quot;body&quot;:&quot;test invio&quot;,&quot;recipients&quot;:{&quot;valid&quot;:{&quot;count&quot;:4},&quot;invalid&quot;:{&quot;total&quot;:0,&quot;list&quot;:[]}},&quot;transaction&quot;:true,&quot;options&quot;:{&quot;flash&quot;:false,&quot;realtime&quot;:false,&quot;timestamp_send&quot;:&quot;1564751430282&quot;},&quot;statistics&quot;:{&quot;error&quot;:0,&quot;sent&quot;:0,&quot;delivered&quot;:0,&quot;total&quot;:4,&quot;sms_total&quot;:4},&quot;base_price&quot;:0.126,&quot;timestamp&quot;:&quot;1564751430282&quot;,&quot;last_update&quot;:&quot;1564751430282&quot;,&quot;priority&quot;:1,&quot;price&quot;:0.126,&quot;state&quot;:0,&quot;id&quot;:&quot;5d4436469f272566771c6671&quot;},&quot;message&quot;:&quot;Updated&quot;,&quot;credit&quot;:&quot;90.97149999999986&quot;,&quot;success&quot;:true,&quot;error&quot;:null}