1. Teleboard | Support Center
  2. Solution home
  3. API Documentation
  4. REST API - DELETE Requests
Open navigation

DELETE/sms/conversation

Function


The DELETE/sms/conversation request will delete one or more SMS conversations from the user's account. 


Parameters


All parameters go in the header.


Parameter
Type
Operation
SMS linestring
The SMS line from which the message is to be deleted.

You can get this from the GET/sms/lines request.
conversationinteger
The ID of the conversation to be deleted (several can be specified in one request, but each in a separate parameter.)

You obtain this ID using the get/sms/conversations method.

Example


To delete a conversation with ID 19177224344 in the inbox directory for voicemail line 16468605270 use this syntax:


HTTPS method: DELETE


webserv.telebroad.com/api/teleconsole/rest/sms/conversation?sms_line=16468605270&conversation=19177324344


Response:


A "null" error indicates successful deletion.


Full details of the conversation that was deleted will follow.


    {"error":null,

        "result":

        [{"id":"2567965","new":"0","direction":"out",

        "sender":"16468605270","receiver":"19177324344",

        "time":"1512318577",

        "msgdata":"Hi there, just wanted to see you got my                 report",

        "sent_by":"13697","read_by":"","seen":"0"},

        {"id":"2159236","new":"0","direction":"in",

        "sender":"19177324344","receiver":"16468605270",

        "time":"1500544816","msgdata":"I did. Looks     

        good.",

        "sent_by":null,"read_by":"13697","seen":"0"}

        ]}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article