---
title: "Update Messages"
method: PATCH
path: "/api/v1/widget/messages/{id}"
tags: ["Widget::Messages"]
---

# Update Messages

`PATCH /api/v1/widget/messages/{id}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/widget/messages/{id}`
- Auth: none required

## Path parameters

- `id` integer, required

## Request body

- object
  - `id` string
  - `before` string
  - `after` string
  - `website_token` string
  - `contact` object[]
    - `name` string
    - `email` string
  - `message` object[]
    - `content` string
    - `referer_url` string
    - `timestamp` string
    - `echo_id` string
    - `reply_to` string

## Response `200`

Success

- object
  - `contact` string

## Other responses

- `401`: Unauthorized
- `404`: Not Found

---

[API](https://skmtc.dev/cloudhumans/apis/cloudchat-api.md) - [All operations](https://skmtc.dev/cloudhumans/apis/cloudchat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudhumans/apis/cloudchat-api/revisions/18199bd17cc5?raw)
