Tickets are the one resource with a full write surface: create, update, assign, close and archive. This is the recipe for syncing defects out of your own system — an inspection app, a BIM issue tracker, a helpdesk — into Ed Controls.

The smallest possible create

Only content.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.
There is no idempotency key. A retried POST creates a second ticket. Store the returned _id against your own reference before retrying anything, and reconcile on _id rather than on title.

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 an email — 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

Without map, 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.
Each changed property writes an operation audit entry tagged userInterface: "API", so the change is attributable in the app’s timeline.
Fields outside the whitelist are silently ignored, not rejected. A PATCH carrying location, map, or participants.informed returns 200 with a ticket that did not change in the way you asked. Only an unknown role name is rejected; a known role the patch does not merge is dropped without a word.In particular: a ticket cannot be moved to another position or another drawing through the API. Get the placement right at creation time.
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:
A stale _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 9457 application/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.attachments is 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. location and map are 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.
Syncing in both directions? Create here, then pick up changes made in the app with Polling for changes.