Skip to main content
POST
Edit without the AI: wording, and by part: restyle, hide, show, nudge, place, swap, move, align, distribute

Authorizations

Authorization
string
header
required

An API key (aid_…) from Settings › API.

Path Parameters

id
string<uuid>
required

Body

application/json

At least one edit. Parts are named by their ids from GET /diagrams/{id}/parts.

page
integer
default:1

Which page of a multi-page diagram.

Required range: 1 <= x <= 100
text
object[]

Wording. Also accepted as edits.

Maximum array length: 30
restyle
object[]
Maximum array length: 100
hide
string[]
Maximum array length: 100

A part id from the parts list: a name from what the part is, such as "node:api", "link:api->db", "text:monthly-revenue", "cell:0/2" or "mark:revenue/2024", which stays the same through edits; or its position, such as "0/2/1".

Maximum string length: 250
show
string[]

Parts hidden earlier with hide.

Maximum array length: 100

A part id from the parts list: a name from what the part is, such as "node:api", "link:api->db", "text:monthly-revenue", "cell:0/2" or "mark:revenue/2024", which stays the same through edits; or its position, such as "0/2/1".

Maximum string length: 250
nudge
object[]

Shift a movable part dx, dy px from where it is now.

Maximum array length: 100
place
object[]

Put a movable part beside another, centred on it across that side.

Maximum array length: 100
swap
object[]

Exchange two movable parts' positions, centre for centre.

Maximum array length: 50
move
object[]

Offset in px from where diagramkit placed the part (0, 0 puts it back).

Maximum array length: 100
align
object
distribute
object
styles
object[]

The canvas editor's own form, by element position.

Maximum array length: 100
moves
object[]

The canvas editor's own form, by move key.

Maximum array length: 100

Response

The finished job.

id
string<uuid>
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed
version
integer
required

How many versions it has; 0 until the first is made.

animated
boolean
required
created_at
string<date-time>
required
title
string | null
description
string | null

What the diagram shows and any assumptions it made.

preset
string | null

Where the diagram will be used, as it was made or last revised for; null without one.

progress
string | null
image_url
string<uri> | null
downloads
object | null

png, jpg, svg, pdf, and mp4 and gif when animated.

With a preset, once there is a version: the download it offers first, as format, url and the query options in that url.

error
object | null

Why a failed job failed. type no_credits (the balance cannot pay for the planned pages) and too_many_pages (a set longer than max_pages or 100 pages) are refused before anything is drawn or charged; otherwise generation_failed.

applied
object[]

Edits only: the wording changes made.

moved
object[]

Edits only: each part an edit moved, with its new box [left, top, width, height] per layout.

skipped
object[]

Edits only: the wording changes not made, with a reason.