story

revoke status message

Revokes (deletes) a previously sent status message.

post/instances/{id}/client/action/revoke-status-message

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/revoke-status-message
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

messageIdstring required

The serialized message ID of the status message to revoke

Example request

{
  "messageId": "true_status@broadcast_ABCDEF1234567890"
}

Response

Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: Status message revoked successfully.

status'success' | 'error'

Whether the request reached the instance. success here does not mean the action was carried out — that is reported by data.status, which is the authoritative one. A malformed input arrives as status: success with data.status: error.

Example response

{
  "status": "success",
  "data": {
    "status": "success",
    "data": {
      "messageId": "true_status@broadcast_ABCDEF1234567890",
      "revoked": true
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.