---
title: "PUT /channels/{channelArn}/messages/{messageId}"
method: PUT
path: "/channels/{channelArn}/messages/{messageId}"
---

# PUT /channels/{channelArn}/messages/{messageId}

`PUT /channels/{channelArn}/messages/{messageId}`

Updates the content of a message.

The `x-amz-chime-bearer` request header is mandatory. Use the `AppInstanceUserArn` of the user that makes the API call as the value in the header.

## Path parameters

- `channelArn` string, required
- `messageId` string, required

## Headers

- `x-amz-chime-bearer` string

## Request body

- object
  - `Content` string, password — The content of the message being updated.
  - `Metadata` string, password — The metadata of the message being updated.

## Response `200`

Success

- UpdateChannelMessageResponse
  - `ChannelArn` string — The ARN of the channel.
  - `MessageId` string — The ID string of the message being updated.

## Other responses

- `480` — BadRequestException
- `481` — ConflictException
- `482` — ForbiddenException
- `483` — UnauthorizedClientException
- `484` — ThrottledClientException
- `485` — ServiceUnavailableException
- `486` — ServiceFailureException

---

[API](https://skmtc.net/aws/apis/chime.md) · [All operations](https://skmtc.net/aws/apis/chime/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/chime/versions/40da18840201/schema)
