---
title: "Pin or unpin a message"
method: PATCH
path: "/v1/chat/messages/{messageId}/pin"
tags: ["chat"]
---

# Pin or unpin a message

`PATCH /v1/chat/messages/{messageId}/pin`

## Path parameters

- `messageId` string, uuid, required

## Request body

- object
  - `pinned` boolean, required

## Response `200`

Successful response

- object
  - `success` boolean, required
  - `pinned` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Resource not found
- `500` — Internal server error

---

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