Mark messages as read
PATCH/api/v2/instance/:instanceId/chat/mark-as-read
Mark messages as read
Request
Path Parameters
instanceId stringrequired
ID of the instance.
- application/json
Body
required
Enter a list of message ids to be marked as read.
messageIds string[]required
Responses
- 200
- 400
- 401
- 500
Success Response
- application/json
- Schema
- Example (from schema)
Schema
readMessages string
Default value: success
{
"readMessages": "success"
}
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
}
UnauthorizedException
- 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
}
InternalServerErrorException
- 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
}
Loading...