[Conversation] Delete Conversation or Messages
- Endpoint Path:
/api/v2/conversation/delete
- Method:
DELETE
- Request:
application/json
Headers Optional Parameter
Parameter Name | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Body Params
Parameter Name | Type | Required | Description |
---|---|---|---|
type | String | required | conversation or message |
conversationId | Number | optional | |
messageIds | String | optional | separated by English commas for multiple id |
Request Description
- Choose either
conversationId
ormessageIds
to pass as a parameter, but not both. type = conversation
: Use theconversationId
parameter to set the current conversation as deleted and delete all messages belonging to the current user in the conversation.type = message
: Use themessageIds
parameter to delete messages with specified IDs in bulk.
Return
json
{
"code": 0,
"message": "ok",
"data": null
}