This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!
This operation is part of the Chat API section of the Web Services API.
This request deletes an uploaded document from the specified chat.
Request URL | /api/v2/me/chats/{id} |
---|---|
HTTP Method | POST |
Required Features | api-multimedia |
Parameter | Value |
---|---|
operationName | DeleteFile |
fileId | The document's identity in the chat. |
POST api/v2/me/chats/0001PaBMYY3600R8
{
"operationName": "DeleteFile",
"fileId": "009F5790DAD80068"
}
{
"statusCode": 0
}
{
"chatPath": "/chats/0001PaBMYY3600R8",
"chatUri": "http://.../api/v2/chats/0001PaBMYY3600R8",
"messageType": "MessageLogUpdated",
"messages": [
{
"attachment": {
"fileId": "009F5790DAD80068"
},
"from": {
"id": "009F5790DA8D0066",
"nickname": "TestName",
"participantId": "009F5790DA8D0066",
"path": "/users/0bcb93c9854f41d6ad89344047ec3223",
"type": "Agent",
"uri": "http://.../api/v2/users/0bcb93c9854f41d6ad89344047ec3223",
"visibility": "All"
},
"index": 8,
"noticeText": "file-deleted",
"timestamp": "2016-07-21 17:24:06.000+0300",
"timestampSeconds": 1469111046000,
"type": "SystemCommand",
"visibility": "All"
}
],
"notificationType": "NewMessages"
}