New HTML (a new version at the same url), title, visibility, or project (moves it; same url)

put/diagrams/{id}

Request

  • Base URL: https://diagram.la/api/v1
  • URL: https://diagram.la/api/v1/diagrams/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

titlestring
htmlstring
visibility'public' | 'private'
kind'flowchart' | 'sequence' | 'architecture' | 'data_flow' | 'data_model' | 'state' | 'mind_map' | 'tree' | 'timeline' | 'gantt' | 'wireframe' | 'chart' | 'comparison' | 'exploded_view' | 'map' | 'infographic' | 'other'

What kind of diagram this is (its form, not its subject): flowchart (process or decision flow, user journey); sequence (sequence diagram: messages between parts over time); architecture (system, cloud, component, C4 or network diagram); data_flow (data flow, pipeline, ETL); data_model (ER diagram, database schema, class diagram); state (state machine or lifecycle); mind_map (mind map or concept map); tree (org chart, hierarchy, decision tree, sitemap); timeline (timeline or roadmap); gantt (Gantt chart or project schedule); wireframe (UI mockup, wireframe, screen flow); chart (bar, line or pie chart, dashboard); comparison (comparison table, matrix, quadrant, Venn); exploded_view (exploded view, assembly, cutaway of a physical object); map (map, floor plan, layout of a place); infographic (infographic, poster, explainer page); other (none of these)

projectstring

Move the diagram to another project you own; the link stays the same

publishtrue

Publish a draft, so everyone who can see its project can see it

Response

{ diagram, changed }

object required

Changes

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