PATCH /chats/{chat_jid}/disappearing-timer

Path parameters

  • chat_jid string Required
application/json

Body

  • timer string

    Values are false, 24h, 7d, or 90d.

Responses

  • 200 application/json

    Timer set

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • data object
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
    • status boolean
    • code integer
    • message string
    • error string
PATCH /chats/{chat_jid}/disappearing-timer
curl \
 --request PATCH 'http://localhost:7001/chats/{chat_jid}/disappearing-timer' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"timer":false}'
Request examples
{
  "timer": false
}
Response examples (200)
{
  "status": true,
  "code": 200,
  "message": "Success",
  "data": {}
}
Response examples (401)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}
Response examples (500)
{
  "status": false,
  "code": 400,
  "message": "Bad request",
  "error": "Bad request"
}