diagrams

deleteDiagramInDocument

Delete a diagram: removes the database record AND every reference to it in the document body — the current marker format plus legacy forms (markers without an embedded diagramId, and old plain-text [Diagram: name] placeholders). The response's removedFromBody says whether a marker was actually found in the body, and versionTimestamp is the document's fresh lock token.

post/tools/deleteDiagramInDocument

Request

  • Base URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1
  • URL: https://api.stablebaseline.io/functions/v1/cloud-serve/api/v1/tools/deleteDiagramInDocument
  • Auth: HTTP bearer

Request body

diagramIdstring required

Diagram ID from DIAGRAM_OMITTED markers.

versionTimestampnumber

Optional document optimistic-lock token; validated when provided. (Alias accepted: documentVersionTimestamp.)

Response

Tool result (shape varies per tool — refer to the tool's docs for the exact return value).

object required

Changes

No recorded changes to this operation across all 1 revision of this API.