• Features
  • Pricing
Get Started

List DocumentsCreate DocumentGet DocumentUpdate DocumentTrash DocumentRestore DocumentDelete PermanentlyDuplicate Document

PATCH /v1/documents/{documentId}

Partially update a document with a JSON request body.

PATCH /v1/documents/{documentId} updates an existing document.

Authentication

Send an organization API key in x-api-key or Authorization: Bearer <key>.

Path Parameters

NameTypeDescription
documentIdstring (uuid)UUID of the document to update.

Request Body

Send a JSON object containing the fields you want to change.

NameTypeDescription
namestring or nullDocument title. Send null or an empty string to reset it to Untitled Document.
folderIdstring (uuid) or nullFolder that contains the document. Send null to remove it from its folder.
authorstring or nullMember ID of the document author.
contentarrayStructured document content.
contentFormatmarkdown, html, or tiptapFormat used for content.
labelIdsarray of strings (uuid)Labels assigned to the document.
metadataarrayDocument metadata and field definitions.
fieldsobjectValues for document custom fields.
objectIdsarray of strings (uuid)Objects linked to the document.
documentVisitIdstring (uuid)Identifier used to associate the update with a document visit.

A document that is not a draft cannot change its title, folder, author, content, content format, labels, or visit ID. Those changes return 423 Locked; metadata, custom fields, and linked objects remain editable.

Example

curl -X PATCH "https://api.blueputto.com/v1/documents/DOCUMENT_ID" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{"name":"Condition report — revised"}'

Success Response

200 OK

{
  "data": {}
}

Error Responses

  • 400 Bad Request
  • 401 Unauthorized
  • 404 Not Found
  • 423 Locked
  • 429 Too Many Requests

GET /v1/documents/{documentId}

Retrieve a single document by its UUID.

DELETE /v1/documents/{documentId}

Move a document to the trash without permanently deleting it.

On this page

AuthenticationPath ParametersRequest BodyExampleSuccess ResponseError Responses