curl --request PATCH \
--url https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"title": "<string>",
"body": "<string>"
},
"plan": {
"dueDate": "2023-11-07T05:31:56Z"
},
"state": {},
"participants": {},
"progressLabels": [],
"tags": [
"<string>"
]
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
payload = {
"content": {
"title": "<string>",
"body": "<string>"
},
"plan": { "dueDate": "2023-11-07T05:31:56Z" },
"state": {},
"participants": {},
"progressLabels": [],
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: {title: '<string>', body: JSON.stringify('<string>')},
plan: {dueDate: '2023-11-07T05:31:56Z'},
state: {},
participants: {},
progressLabels: [],
tags: ['<string>']
})
};
fetch('https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'content' => [
'title' => '<string>',
'body' => '<string>'
],
'plan' => [
'dueDate' => '2023-11-07T05:31:56Z'
],
'state' => [
],
'participants' => [
],
'progressLabels' => [
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
payload := strings.NewReader("{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"id": "<string>",
"rev": "2-9a1c…"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Update, assign, or close a ticket
Partially updates a ticket. Only a strict whitelist of writable fields is
merged — content.title, content.body, plan.dueDate, tags,
progressLabels, state.state, and participants.responsible. Anything else
in the body (including _id, _rev, project, type, map, and author) is
ignored.
Assigning and closing are not separate endpoints — they are field changes:
- Close:
{"state":{"state":"completed"}} - Assign:
{"participants":{"responsible":{"email":"..."}}}
The lifecycle state.state is not order-enforced: any of created,
started, or completed may be set regardless of the current state. A changed
property writes an operation audit entry tagged userInterface: "API".
Optimistic concurrency: pass the current _rev in an optional If-Match
header. On a stale value the request fails with 409 and no write happens;
when the header is omitted the latest revision is read and last-write-wins.
The whitelisted fields are validated before the merge. A violation is rejected
with 422 and an application/problem+json body naming the offending field,
and nothing is written; a body that is not a JSON object is rejected with 400.
Who may update: Accountable or Support on the project, Consulted or
Informed on the project, and the ticket’s responsible and assignees. The
author of a ticket that is still created may change only
content.title, content.body, plan.dueDate and tags. Only
Accountable or Support may change participants.responsible.
The checks run in this order: unknown ticket 404, body not an object
400, field validation 422 (title, body, participants, due date,
tags), stale If-Match 409, role 403, then the state and
progressLabels values 422. So a caller without the right role can
receive a 422 or 409 before the 403.
The response is the database acknowledgement {ok, id, rev}, not the
ticket; read it again with GET when you need the result.
curl --request PATCH \
--url https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"content": {
"title": "<string>",
"body": "<string>"
},
"plan": {
"dueDate": "2023-11-07T05:31:56Z"
},
"state": {},
"participants": {},
"progressLabels": [],
"tags": [
"<string>"
]
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
payload = {
"content": {
"title": "<string>",
"body": "<string>"
},
"plan": { "dueDate": "2023-11-07T05:31:56Z" },
"state": {},
"participants": {},
"progressLabels": [],
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
content: {title: '<string>', body: JSON.stringify('<string>')},
plan: {dueDate: '2023-11-07T05:31:56Z'},
state: {},
participants: {},
progressLabels: [],
tags: ['<string>']
})
};
fetch('https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'content' => [
'title' => '<string>',
'body' => '<string>'
],
'plan' => [
'dueDate' => '2023-11-07T05:31:56Z'
],
'state' => [
],
'participants' => [
],
'progressLabels' => [
],
'tags' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}"
payload := strings.NewReader("{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/tickets/{database}/{ticketId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": {\n \"title\": \"<string>\",\n \"body\": \"<string>\"\n },\n \"plan\": {\n \"dueDate\": \"2023-11-07T05:31:56Z\"\n },\n \"state\": {},\n \"participants\": {},\n \"progressLabels\": [],\n \"tags\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"id": "<string>",
"rev": "2-9a1c…"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Authorizations
Headers
Path Parameters
Body
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.
