---
title: "Update Doc"
method: PATCH
path: "/api/v4/{workspace-slug}/documents/{doc-public-id}"
---

# Update Doc

`PATCH /api/v4/{workspace-slug}/documents/{doc-public-id}`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/documents/{doc-public-id}`
- Auth: HTTP bearer

Update Doc changes the title and/or content of a Doc, and returns the updated Doc. New content replaces the existing content. Requires write access to the Doc.

## Path parameters

- `workspace-slug` string, required
- `doc-public-id` string, uuid, required

## Query parameters

- `fields` string

## Request body

- Body1605123
  - `content` string: The new content of the Doc. Replaces the existing content.
  - `content_format` 'markdown' | 'html': Format of the content being sent. Defaults to 'markdown', matching get-doc's default output. Content is converted to HTML for storage.
  - `title` string: The new title of the Doc.

## Response `200`

Resource

- DocEntityWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `entity` Doc, required
    - `archived` boolean: A true/false boolean indicating if the Doc has been archived.
    - `collections` NestedCollectionSlimList: The Collections the Doc belongs to.
      - `current_items` integer, required
      - `entities` CollectionSlim[], required
        - `entity_type` 'collection:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique ID of the Collection.
        - `name` string, required: The name of the Collection.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `content_html` string, nullable: The Doc content in HTML format. Only present on get-doc when content_format=html.
    - `content_markdown` string, nullable: The Doc content in Markdown format. Only present on get-doc when content_format is omitted or 'markdown'.
    - `created_at` string, date-time: The time/date the Doc was created.
    - `creator` MemberSlim: The Member who created the Doc.
      - `entity_type` 'member:slim', required: The type of this entity.
      - `id` string, uuid, required: The unique ID of the Member.
      - `name` string, required: The name of the Member.
      - `uri` string, required: A resolvable URI for the entity that will return the full representation.
    - `entity_type` 'doc': The type of this entity.
    - `followers` NestedMemberSlimList: The Members who followers of the Doc.
      - `current_items` integer, required
      - `entities` MemberSlim[], required
        - `entity_type` 'member:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique ID of the Member.
        - `name` string, required: The name of the Member.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `list_url` string, required
      - `total_items` integer, required
    - `id` string, uuid: The unique ID of the Doc.
    - `title` string: The title of the Doc.
    - `updated_at` string, date-time: The time/date the Doc was last updated.
    - `uri` string: A resolvable URI for the entity.

## Other responses

- `400`: Schema mismatch
- `403`
- `404`: Resource does not exist
- `422`: Unprocessable

## Changes

- **2026-10-29** `5c583fd67493`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shortcut-com/apis/shortcut-api/changes/api/v4/:workspace-slug/documents/:doc-public-id/patch.md)

---

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