Apply exact HTML edits to one documentation page
Applies an ordered batch of exact HTML search-and-replace edits atomically. Use canonical HTML, contentGeneration, and contentEtag from a current tree, search, partial-read, page-detail, or prior edit response. Each search must match exactly once in the same current document. The server rejects missing, ambiguous, overlapping, stale, malformed, or schema-lossy edits. HTML fragments are normalized with the editor HTML parser before matching. The edit stays in the active collaboration generation and connected editors receive its incremental update. The response is a small receipt and does not include the page body.
/projects/documentation/{id}/content-editsAuthorizationOAuth2 access token · headerrequiredapi:writeAuthorizationBearer token (JWT) · headerrequiredidstring<uuid>requiredProject documentation page UUID. Folder UUIDs cannot receive content edits.
application/jsoncommandIdstringrequiredStable client command identity. An exact retry returns the stored receipt. Reusing it for another request returns a conflict.
contentEtagstringrequiredCurrent content ETag from a tree, search, partial-read, page-detail, or previous edit response. Treat it as opaque and send the complete string unchanged, including quotes when present.
contentGenerationnumberrequiredCurrent content generation from the page detail or a previous edit receipt.
editsProjectDocumentationHtmlEditDto[]requiredShow propertiesHide properties
ProjectDocumentationHtmlEditDtoreplacestringrequiredReplacement HTML fragment. Use an empty string to remove the matched fragment.
searchstringrequiredExact HTML fragment from the canonical content returned by the API.
commandIdstringrequiredcontentEtagstringrequiredQuoted strong ETag after the edit. Keep the double quotes for the next exact edit.
contentGenerationnumberrequiredduplicatebooleanrequiredTrue when the server returned the stored command receipt.
matchesProjectDocumentationHtmlEditMatchDto[]requiredShow propertiesHide properties
ProjectDocumentationHtmlEditMatchDtoeditIndexnumberrequiredmatchCountnumberrequired1matchedCharactersnumberrequiredstateBytesnumberrequiredBytes in the durable aggregate editor state.
updateBytesnumberrequiredBytes in the incremental live-editor update.
Invalid page identifier, malformed HTML, or HTML that the editor schema cannot preserve.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
stringobjectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
stringstringstringobjectstatusCodenumberrequiredHTTP status code for this response.
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
The page does not exist or is not accessible.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
stringobjectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
stringstringstringobjectstatusCodenumberrequiredHTTP status code for this response.
Stale content, a missing or ambiguous search, overlapping matches, or command identity reuse.
errorstring | objectHTTP error name or a structured HTTP exception response.
Show propertiesHide properties
stringobjectmessagestring | string[] | objectrequiredError message, validation message list, or request-field validation message map.
Show propertiesHide properties
stringstringstringobjectstatusCodenumberrequiredHTTP status code for this response.