---
title: "Update a WhatsAppMessage activity"
method: PUT
path: "/activity/whatsapp_message/{id}/"
tags: ["activities.whatsapp_messages"]
---

# Update a WhatsAppMessage activity

`PUT /activity/whatsapp_message/{id}/`

## Path parameters

- `id` string, required

## Request body

- UpdateWhatsAppMessage
  - `activity_at` string, date-time
  - `attachments` WhatsAppAttachmentData[]
    - `content_type` string, required
    - `filename` string, required
    - `url` string, required
  - `contact_id` string
  - `direction` 'incoming' | 'outgoing' — Direction of communication. Outgoing means the communication flowing from the user to the lead/contact. Inbound means the opposite.
  - `integration_link` string, uri, nullable
  - `local_phone` string
  - `message_markdown` string
  - `remote_phone` string
  - `response_to_id` string, nullable
  - `user_id` string

## Response `200`

Successful response

- WhatsAppMessageActivity
  - `_type` string, required
  - `activity_at` string, date-time, nullable, required
  - `attachments` Attachment[]
    - `content_type` string, nullable, required
    - `filename` string, nullable, required
    - `size` integer, nullable, required
    - `thumbnail_url` string, nullable
    - `url` string, required
  - `contact_id` string, nullable, required
  - `created_by` string, nullable, required
  - `created_by_name` string, nullable
  - `date_created` string, date-time, required
  - `date_updated` string, date-time, required
  - `direction` 'incoming' | 'outgoing', required — Direction of communication. Outgoing means the communication flowing from the user to the lead/contact. Inbound means the opposite.
  - `external_whatsapp_message_id` string, required
  - `id` string, required
  - `integration_link` string, nullable, required
  - `integration_name` string, nullable, required
  - `lead_id` string, nullable, required
  - `local_phone` string, required
  - `local_phone_formatted` string, required
  - `message_html` string, required
  - `message_markdown` string, required
  - `organization_id` string, required
  - `remote_phone` string, required
  - `remote_phone_formatted` string, required
  - `response_to_id` string, nullable, required
  - `sequence_id` string, nullable
  - `sequence_name` string, nullable
  - `sequence_subscription_id` string, nullable
  - `source` 'ui' | 'api' | 'import' | 'clipper' | 'email' | 'suggestion' | 'segment-integration' | 'customerio-integration' | 'calendly-integration' | 'ai' | 'whatsapp' | 'webform', required
  - `text` string, required
  - `updated_by` string, nullable, required
  - `updated_by_name` string, nullable
  - `user_id` string, nullable, required
  - `user_name` string, nullable
  - `users` string[], required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/close/apis/close-api.md) · [All operations](https://skmtc.net/close/apis/close-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/close/close-api/revisions/0dcf3303e9d7/schema)
