---
title: "POST /decks/{reference}/pin"
method: POST
path: "/decks/{reference}/pin"
tags: ["decks"]
---

# POST /decks/{reference}/pin

`POST /decks/{reference}/pin`

toggle pinned status of a deck

## Path parameters

- `reference` string, required

## Response `200`

OK

- ServerFetchDeckResponse
  - `deck` MalakDeck, required
    - `created_at` string
    - `created_by` string
    - `deck_size` integer
    - `id` string
    - `is_archived` boolean
    - `is_pinned` boolean
    - `object_key` string
    - `preferences` MalakDeckPreference
      - `created_at` string
      - `created_by` string
      - `deck_id` string
      - `enable_downloading` boolean
      - `expires_at` string
      - `id` string
      - `password` MalakPasswordDeckPreferences
        - `enabled` boolean
        - `password` string
      - `reference` string
      - `require_email` boolean
      - `updated_at` string
      - `workspace_id` string
    - `reference` string
    - `short_link` string
    - `title` string
    - `updated_at` string
    - `workspace_id` string
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2025-01-29** `8e387692336b` — 1 info
  - the response property `deck` became required for the status `200`
- **2025-01-26** `fa1cc8ee75f8` — 1 info
  - added the optional property `deck/object_key` to the response with the `200` status
- **2025-01-23** `7ce54b1cf812` — 1 info
  - endpoint added
- **2024-11-14** `9eeda9b06388` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ayinke-llc/apis/malak-s-api-documentation/changes/decks/:reference/pin/post.md)

---

[API](https://skmtc.dev/ayinke-llc/apis/malak-s-api-documentation.md) · [All operations](https://skmtc.dev/ayinke-llc/apis/malak-s-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ayinke-llc/malak-s-api-documentation/revisions/3dff99ea5963/schema)
