Delete object from the bucket.
DELETEhttps://{api2.codechat.dev}/api/v2/instance/:instanceId/bucket/media
Authorization: Json Web Token
name: Json Web Tokentype: httpscheme: bearerbearerFormat: jwtdescription: It is an **HTTP** authentication scheme that involves security tokens called **bearer tokens**. **BearerFormat:** JWTin: header
Delete object from the bucket.
Request
Path Parameters
instanceId stringrequired
ID of the instance.
Query Parameters
mediaId Media IDrequired
ID of the media.
Responses
- 200
- 400
- 403
- 404
Success - status 200
- application/json
- Schema
- Example (from schema)
Schema
mediaId stringrequired
type stringrequired
filename stringrequired
mimetype stringrequired
path stringrequired
createdAt stringrequired
deletedAt stringrequired
bucketBucketId stringrequired
Message object
{
"mediaId": "string",
"type": "string",
"filename": "string",
"mimetype": "string",
"path": "string",
"createdAt": "string",
"deletedAt": "string",
"bucketBucketId": "string",
"Message": {
"messageId": "string",
"keyId": "string",
"keyFromMe": true,
"keyRemoteJid": "string",
"keyParticipant": "string",
"pushName": "string",
"contentType": "string",
"isGroup": true,
"content": {},
"source": "string",
"messageTimestamp": "string",
"createdAt": "2024-04-14T14:11:05.745Z",
"deletedAt": "2024-04-14T14:11:05.745Z",
"typeOfDeletion": "everyone"
}
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- CURL
curl -L -g -X DELETE 'https://{api2.codechat.dev}/api/v2/instance/:instanceId/bucket/media' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear