---
title: "Pin a post to the channel"
method: POST
path: "/api/v4/posts/{post_id}/pin"
tags: ["posts"]
---

# Pin a post to the channel

`POST /api/v4/posts/{post_id}/pin`

Pin a post to a channel it is in based from the provided post id string.
##### Permissions
Must be authenticated and have the `read_channel` permission to the channel the post is in.

## Path parameters

- `post_id` string, required

## Response `200`

Pinned post successful

- 38cb7293StatusOK
  - `status` string — Will contain "ok" if the request was successful and there was nothing else to return

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
