The smallest possible create
Onlycontent.title is required:
201 with the created document, and a Location header pointing at it. Keep
the _id — it is how you correlate the ticket with your own record later.
What the server decides for you
These are set on creation and ignored if you send them:A realistic create
Participants
Every participant is an object carrying anemail — never a bare string.
Each role takes a single object or an array of them, so
{"email": "…"} and [{"email": "…"}] are equivalent.
An unknown role name is rejected with
422. Addresses are stored as-is and
never checked against project membership — a typo produces an assignment
that silently reaches nobody, so validate against
GET /api/v2/data/projects/{database} on your side first.
Due dates
plan.dueDate accepts ISO-8601 (2026-07-01T00:00:00Z), a bare date
(2026-07-01), a year-month, a year, or epoch milliseconds. Anything else is
422.
Position
Withoutmap, the ticket lands on the project geo map at a fixed default
position. To pin it to a real drawing, pass map and a location — see
Place a ticket on a drawing for how to
work out x, y and zoom.
Update, assign and close
All three are the same call.PATCH merges a strict whitelist:
content.title, content.body, plan.dueDate, tags, progressLabels,
state.state, participants.responsible.
operation audit entry tagged
userInterface: "API", so the change is attributable in the app’s timeline.
state.state is not order-enforced — completed → created is as accepted as
created → started. If your integration depends on a lifecycle, enforce it on
your side.
Comments and photos are not PATCH fields. They have their own endpoints — see
Comment and attach to a
ticket.
Concurrency
Pass the ticket’s current_rev as If-Match to avoid clobbering a change
someone made in the app:
_rev fails with 409 and writes nothing — re-read, re-apply, retry.
Omit the header and the latest revision wins, last write in.
Archiving
DELETE archives the ticket — the platform’s soft delete. It drops out of the
default list but is still readable with archived=true.
204, idempotent, and it honours If-Match like PATCH. Archiving is not
completing: DELETE removes it from the active list, PATCH with
state.state: completed marks the work done and leaves it there.
Errors
The write endpoints return RFC 9457application/problem+json, whose detail
names the offending field:
On create, authorization is evaluated before the body, so a
403 says
nothing about whether your JSON was valid. PATCH and DELETE look the ticket
up first and check most of the body and the If-Match revision before the
role, so there a 404, 422 or 409 can come before a 403.
PATCH answers { "ok": true, "id": …, "rev": … }, not the updated ticket:
GET it again when you need the result.
Who may do what
See Roles & permissions.
What you cannot do yet
- Attach anything at creation time.
content.attachmentsis cleared on create. A photo can be added afterwards with a second call — see Comment and attach to a ticket — but a map snapshot cannot be added at all. - Move a ticket.
locationandmapare create-only. - Place on the geo map. Real geographic coordinates are discarded; the ticket gets a fixed default position.
- Rely on state transitions. Any state may be set from any other.
