Logo
Openapi.it Public API Documentation

{{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).

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

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



Curl
curl -X PUT 'baseUrl/messages/:id' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"recipients":"\u003cstring\u003e","transaction":"\u003cboolean\u003e","options":{"timestamp_send":"\u003cstring\u003e"}}'

ENDPOINTS