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.

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

Request

  • Base URL
    https://api.app.shortcut.com
  • Auth
    HTTP bearer

Path parameters

workspace-slugstring required

The slug for the Workspace.

doc-public-idstring uuid required

The ID of the Doc.

Query parameters

fieldsstring

Fields to include in the response, as a comma-separated string. If provided, only these fields will be included for each entity in the response. If not present, all fields will be returned.

Request body

contentstring

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.

titlestring

The new title of the Doc.

Response

Resource

$schemastring required

The URI for the json-schema for this response.

Changes