---
title: "Update Message"
method: PUT
path: "/api/v1/monitor/messages/{message_id}"
tags: ["Monitor"]
---

# Update Message

`PUT /api/v1/monitor/messages/{message_id}`

## Path parameters

- `message_id` string, uuid, required

## Request body

- MessageUpdate
  - `text` string, nullable
  - `sender` string, nullable
  - `sender_name` string, nullable
  - `session_id` string, nullable
  - `context_id` string, nullable
  - `files` string[], nullable
  - `edit` boolean, nullable
  - `error` boolean, nullable
  - `properties` LangflowSchemaPropertiesProperties
    - `text_color` string, nullable
    - `background_color` string, nullable
    - `edited` boolean
    - `source` LangflowSchemaPropertiesSource
      - `id` string, nullable — The id of the source component.
      - `display_name` string, nullable — The display name of the source component.
      - `source` string, nullable — The source of the message. Normally used to display the model name (e.g. 'gpt-4o')
    - `icon` string, nullable
    - `allow_markdown` boolean
    - `positive_feedback` boolean, nullable
    - `state` 'partial' | 'complete'
    - `targets` unknown[]
      - unknown

## Response `200`

Successful Response

- MessageRead
  - `timestamp` string, date-time
  - `sender` string, required
  - `sender_name` string, required
  - `session_id` string, required
  - `context_id` string, nullable
  - `text` string, required
  - `files` string[]
  - `error` boolean
  - `edit` boolean
  - `properties` LangflowSchemaPropertiesProperties
    - `text_color` string, nullable
    - `background_color` string, nullable
    - `edited` boolean
    - `source` LangflowSchemaPropertiesSource
      - `id` string, nullable — The id of the source component.
      - `display_name` string, nullable — The display name of the source component.
      - `source` string, nullable — The source of the message. Normally used to display the model name (e.g. 'gpt-4o')
    - `icon` string, nullable
    - `allow_markdown` boolean
    - `positive_feedback` boolean, nullable
    - `state` 'partial' | 'complete'
    - `targets` unknown[]
      - unknown
  - `category` string
  - `content_blocks` LfxSchemaContentBlockContentBlock[]
    - `title` string, required
    - `contents` object[], required
    - `allow_markdown` boolean
    - `media_url` string[], nullable
  - `id` string, uuid, required
  - `flow_id` string, uuid, nullable, required

## Other responses

- `422` — Validation Error

## Changes

- **2025-12-23** `b0ee9ddb8d9f` — 1 breaking, 3 info
  - removed `#/components/schemas/Properties` from the `properties` request property `anyOf` list
  - added the new optional request property `context_id`
  - added `#/components/schemas/langflow__schema__properties__Properties` to the `properties` request property `anyOf` list
  - added the optional property `context_id` to the response with the `200` status
- **2025-10-16** `840e512f9378` — 1 breaking, 1 info
  - removed `#/components/schemas/langflow__schema__properties__Properties` from the `properties` request property `anyOf` list
  - added `#/components/schemas/Properties` to the `properties` request property `anyOf` list
- **2025-10-16** `9bd3e81318d7` — 1 breaking, 11 warning, 4 info
  - removed `#/components/schemas/Properties` from the `properties` request property `anyOf` list
  - removed the request property `category`
  - removed the request property `content_blocks`
  - removed the request property `context_id`
  - …12 more

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/monitor/messages/:message_id/put.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/b0ee9ddb8d9f/schema)
