---
title: "Pin or unpin a project for the signed-in account"
method: PATCH
path: "/v1/projects/{projectId}/pin"
tags: ["Projects"]
---

# Pin or unpin a project for the signed-in account

`PATCH /v1/projects/{projectId}/pin`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/projects/{projectId}/pin`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/projects/:projectId/pin/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `projectId` string, uuid, required

## Request body

- object
  - `pinned` boolean, required

## Response `200`

This account's saved pin state. Does not change project access or other accounts' pins.

- object
  - `id` string, uuid, required
  - `isPinned` boolean, required

## Other responses

- `401`: A human account session is required.
- `403`: This account cannot read projects.
- `404`: The project is unavailable to this account.
- `422`: Invalid project ID or request body.

---

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