Connections

PATCH /connections/{phoneNumber}/presence

Changed on

Request

Path parameters

phoneNumberstring required
Example:+551234567890

Phone number for connection. Must have + prefix.

Request body

type'unavailable' | 'available' | 'composing' | 'recording' | 'paused' required

Presence type. available is automatically reset to unavailable after 60s. composing and recording are automatically held for ~25s by WhatsApp. paused can be used to reset composing and recording early.

toJidstring

WhatsApp JID [Required for composing, recording, and paused]

Example request

{
  "type": "available"
}

Response

Presence update sent successfully

Changes

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      removed the success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the success response with the status