---
title: "Update several messages"
method: POST
path: "/v1/messages/batch-update"
tags: ["Messages"]
---

# Update several messages

`POST /v1/messages/batch-update`

## Request

- Base URL: `https://api.agentboxd.com`
- URL: `https://api.agentboxd.com/v1/messages/batch-update`
- Auth: HTTP bearer

`{ ids, add_labels?, remove_labels?, is_read? }`. The same change on up to 100 messages. `{ data, missing }`, as for batch-get. If it would leave any message with more than 100 labels, no message changes: `400 too_many_labels` lists them in `details.ids`.

Permission: `messages:write`.

## Request body

- object
  - `add_labels` string[]
  - `remove_labels` string[]
  - `is_read` boolean
  - `ids` string[], required

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/agentboxd/apis/agentboxd-api.md) · [All operations](https://skmtc.dev/agentboxd/apis/agentboxd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentboxd/apis/agentboxd-api/revisions/ee7b079f0e97?raw)
