PATCH
Update, assign, or close a ticket

Authorizations

Authorization
string
header
required

Obtain a token via POST /api/v1/oauth/token (password grant) and send it as Authorization: Bearer <token>.

Headers

If-Match
string

The ticket's current _rev for optimistic concurrency. Omit for last-write-wins.

Path Parameters

database
string
required

Project identifier (each project has its own database). Obtain it from GET /api/v2/data/projects.

ticketId
string
required

Body

application/json

Partial update. Every property is optional; only the fields present are changed. Fields outside this whitelist are silently ignored. To close a ticket send state.state: completed; to assign send participants.responsible.

The fields listed here are validated to the same rules as on create: a violation is rejected with 422 and nothing is written. Fields outside the whitelist are ignored rather than validated.

content
object
plan
object
state
object

The lifecycle state. Not order-enforced — any value may be set.

participants
object

Only responsible is merged; the other roles are ignored. A key that is not a participant role is rejected with 422. Reassign by sending a participant object, e.g. {"responsible": {"email": "foreman@example.com"}}.

progressLabels
enum<string>[]

An invalid value rejects the whole request with 422.

Available options:
inProgress,
readyToReview,
approved,
changesRequested,
onHold
tags
string[]

Response

Write acknowledgement.

The database's acknowledgement of a write. rev is the document's new _rev.

ok
boolean
Example:

true

id
string
rev
string
Example:

"2-9a1c…"