---
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

---

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