Delete a Message Session
Delete a message session.
Request URL
GET {base_url}/{api_path}/message_session/delete?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| session_id | Yes | Integer | The unique ID of the message session. Note: You can query the message session ID
using Search Specific Message Sessions. |
| user_type | Yes | Integer | The type of the operator who deletes the message
session. Valid value:
|
| user_no | No | String | The unique ID of the operator who deletes the message
session. Valid value:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Examples
Request example
Delete a message session (ID: 3074) for extension 1003.
GET /openapi/v1.0/message_session/delete?user_type=1&user_no=1003&session_id=3074&access_token=o9wi8YLOEMWhCHjdpDO0QNX0AO9ALKxR HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}