Update a document
PATCH/api/v1/documents/:document_id
Updates document content, title, path, metadata, or tags. Supplying path moves the document to a new logical path within the project.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
Document updated
Invalid request — a query parameter or body field the operation does not declare, or a value that fails validation
Unauthorized
Forbidden
Document not found
The document has moved past the version this write read (VERSION_CONFLICT, with meta.current_version), or path is held by another file in the project (NAME_CONFLICT). Nothing is written.
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Seconds until the quota window admits a request again
Unexpected server error — INTERNAL_ERROR, with the raw message never forwarded