APIDocuments
Update a document
PATCH /documents/{id}
PATCH
apiKey connector:writeheader
AuthorizationBearer <token>ChatPRD API key from Settings → API Keys, sent as Authorization: Bearer <key>. Read-only keys carry the connector:read scope; read/write keys also carry connector:write. Requires a Pro, Team or Enterprise plan.
Scope: connector:write
id*stringDocument ID (UUID), as returned by GET /documents.
Format
uuidapplication/json- body
contentMarkdown*stringThe complete new Markdown body. Replaces the existing content entirely and must contain non-whitespace text.
Match
\SLength
1 <= lengthtitle?stringLength
1 <= length <= 200expectedUpdatedAt*|The updatedAt value from the GET response used to prepare this replacement.
Format
date-timeorganizationId?stringRequired for documents in a team workspace.
The updated document.
application/json- response
id*stringFormat
uuidtitle*stringthreadId*string|nullurl*stringFormat
uriExample Request
curl -X PATCH 'https://app.chatprd.ai/api/connectors/v1/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "contentMarkdown": "# Mobile onboarding PRD\n\n## Problem\n\nUpdated problem statement...", "expectedUpdatedAt": "2026-09-25T12:00:00.000Z"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "threadId": "string", "url": "http://example.com"}