Replace document (full replacement)
Deprecated — use PATCH /api/v2/documents/{identifier}/draft (and the related /draft routes). Scheduled for removal on July 31, 2026 (see the Sunset response header).
Updates a document with the specified identifier. This endpoint performs a full resource replacement — all required fields must be provided and existing query presentations are replaced entirely. Only dashboard documents are supported; analysis documents and documents without an associated dashboard return 400. For published documents, the update goes through a draft/publish workflow automatically; if a draft already exists, the request returns 409 unless clearExistingDraft is set to true.
Path parameters
Document identifier (either document ID or identifier slug)
Document identifier (either document ID or identifier slug)
Request body
Response
Document replaced successfully