Base URL: https://web.edcontrols.com All endpoints require Authorization: Bearer <token> — see Authentication. Request and response bodies are JSON unless stated otherwise.

Conventions

  • database parameter — identifies the project (one database per project). Get it from GET /api/v2/data/projects.
  • Search envelope — every list endpoint returns { size, page, hits, results, aggregations? }. See Search & filtering.
  • Paging — page (0-based) and size (default 20) query parameters. The window ends at 10,000 results: page with filters (for example a date range) rather than past it.
  • Updates — tickets and audit templates take a field-level PATCH (optionally guarded by If-Match). Audits take a full-document PUT with the current _rev; a 409 means a revision conflict. Projects, files and file groups take the full document too, but are applied onto the stored version without a revision check: the last writer wins.
  • Many writes answer an acknowledgement, not the document — often { "ok": true, "id": …, "rev": … }. Each endpoint says what it returns.
  • Deletes are soft — tickets and audit templates take DELETE, which archives them; files, drawings and groups are deleted via PUT .../softDelete with { "id": ["..."] }.
  • File/map content is fetched by URL — POST endpoints take a fileUrl/pdfURL the server downloads from; processing is asynchronous. Any public https link that works without signing in is fetched; the downloaded content must be an allowed file type — see Upload files and maps.
  • POST search endpoints are read-only queries, safe to retry.

Two URL shapes for audits and audit templates

The audit surface answers on two paths per endpoint, and they are the same endpoint — one handler, both URLs, identical requests, responses and errors: Prefer the canonical column in new code. /projects/{database}/... is where the API already puts the project for a single-document read — so the project sits in the same place whether you are reading one audit, listing them or writing one, instead of moving to the other side of the resource name for a write. Sending a write to the wrong one of the two answers 405 Method Not Allowed, which reads like a missing endpoint rather than a misspelled URL. Both columns are first-class and stay that way; neither is deprecated, and existing clients need no change. Only the audit endpoints have the pair — tickets, files and maps have one shape each. The project-scoped list endpoints are the cross-project list filtered on one project: same filters, same search envelope, with database read from the path instead of the query string. The cross-project forms of these lists still require database as a query parameter; there is no list across projects.

Status codes

401 means your token is no longer good: get a new one. 503 means the API could not check the token at all; the token may be fine, so retry with backoff instead of logging the user out.

Errors

Errors are moving to RFC 9457 application/problem+json. The ticket, audit-template and template-group endpoints already answer their errors in it, and so do most audit errors:
The other endpoints (projects, files, file groups, maps, drawing groups) still answer some errors with Spring’s default body, for example:
and a few older audit checks (a role refusal, a missing database) answer { "message": "…", "code": "FORBIDDEN", "status": "403" }, with status as a string. All of these will switch to application/problem+json. So write your client to:
  • Branch on the HTTP status code, never on the body.
  • Read detail (or message/error) for diagnostics only — its wording is not part of the contract.
  • Treat a 500 on a read of one document by id as “possibly not found”. A few older single-document reads (one file, file group or drawing, a signed link) answer an unknown id with 500 instead of 404. That is a bug being fixed; once fixed they answer 404, so handle both.