DEVELOPER DOCUMENTATION / API v1
Updating work
Update assigned tasks, append progress notes and replace factual actual-effort intervals using the frozen Can You Just v1 contract.
Change planning fields
PATCH /api/v1/tasks/42 requires tasks:update, exact task If-Match and a live claim token when a lease exists. A retry key is optional and recommended. A successful write returns 204 with no response body. Omission preserves fields; null clears supported optional fields. Known-start corrections follow task lifecycle rules; null does not erase established tracking.
curl -i -X PATCH 'https://cyj.example/api/v1/tasks/42' \
-H "Authorization: Bearer $CYJ_API_TOKEN" \
-H 'If-Match: "task-42-plan-7"' \
-H 'Idempotency-Key: example-patch-001' \
-H 'X-Task-Claim: 22222222-2222-4222-8222-222222222222' \
-H 'Content-Type: application/json' \
--data-raw '{"status":"InProgress","progressNotes":"Checking the release summary."}'
Worker PATCH accepts status (Ready/InProgress/Done), startedAt, progressNotes (40,000), and actualIntervals (requires tasks:time). Planning fields, including estimatedMinutes and dependencyIds, are rejected with 403. Use the separately scoped planning endpoints for briefs, duration, sequencing, dates, dependencies and assignments. A long implementation brief never prevents a status-only update.
Append a note
POST /api/v1/tasks/42/notes requires tasks:notes, current task If-Match and a claim token under a live lease. The nonblank text is at most 20,000 characters. Notes append progress context without replacing the description. Success is 204.
curl -i -X POST 'https://cyj.example/api/v1/tasks/42/notes' \
-H "Authorization: Bearer $CYJ_API_TOKEN" \
-H 'If-Match: "task-42-plan-7"' \
-H 'Idempotency-Key: example-note-001' \
-H 'X-Task-Claim: 22222222-2222-4222-8222-222222222222' \
-H 'Content-Type: application/json' \
--data-raw '{"text":"Draft prepared. Waiting for approval."}'
Replace factual actual effort
PUT /api/v1/tasks/42/actual-effort requires tasks:time. Supply actualIntervals as a replacement, never an increment. Describe real past work for the mapped resource. Other contributors’ factual intervals cannot be changed. Success is 204.
curl -i -X PUT 'https://cyj.example/api/v1/tasks/42/actual-effort' \
-H "Authorization: Bearer $CYJ_API_TOKEN" \
-H 'If-Match: "task-42-plan-7"' \
-H 'Idempotency-Key: example-actual-001' \
-H 'X-Task-Claim: 22222222-2222-4222-8222-222222222222' \
-H 'Content-Type: application/json' \
--data-raw '{"actualIntervals":[{"staffMemberId":7,"start":"2026-10-19T09:00:00","end":"2026-10-19T09:20:00"}]}'
These example intervals are fictional and must be replaced with known actual work. Their start/end values use London wall time. Planning or elapsed forecast time does not itself prove actual effort. A task’s calculated remaining duration and factual intervals are different measures.
Actual intervals are historical facts, independent of planned allocations, working patterns, estimated duration and calculated remaining effort. Work outside the original allocation is allowed. Start/end accept ISO date-times containing T and seconds, with up to seven fractional digits. Z or explicit offsets are converted to Europe/London; bare values are London wall time. Seconds and fractional seconds are preserved without rounding. Each end must be after its start and at or before precise current London time; genuinely future ends return HTTP 422 validation_failed with an explicit future-interval message. Starts must be in 2000 or later and ends in 2099 or earlier. Intervals for the same resource must not overlap; adjacent intervals are allowed. The actualIntervals array replaces recorded intervals rather than incrementing them. Preserve all intended own intervals and include other contributors� existing intervals unchanged; changing or omitting their contributions is forbidden. An empty array clears actuals only when no other contributor�s intervals would be removed. Existing authentication, ownership, claim and If-Match requirements apply. There is no whole-minute requirement.
Actual intervals are historical facts, independent of planned allocations, working patterns, estimated duration and calculated remaining effort. Work outside the original allocation is allowed. Start/end accept ISO date-times containing T and seconds, with up to seven fractional digits. Z or explicit offsets are converted to Europe/London; bare values are London wall time. Seconds and fractional seconds are preserved without rounding. Each end must be after its start and at or before precise current London time; genuinely future ends return HTTP 422 validation_failed with an explicit future-interval message. Starts must be in 2000 or later and ends in 2099 or earlier. Intervals for the same resource must not overlap; adjacent intervals are allowed. The legacy actualIntervals array replaces the caller's closed intervals. Other contributors and open intervals are retained even if omitted. Use the ID-based operations below for open intervals; legacy submissions cannot erase them. Existing authentication, ownership, claim and If-Match requirements apply. There is no whole-minute requirement.
Strict request shapes
Send one JSON object within 1048576 bytes. Unknown members, duplicate members including case variants, invalid typed fields and irrelevant combinations are rejected. Do not overpost a complete task response as PATCH input. Responses include read-only context that is not writable.
Follow If-Match rules, claim requirements and retry receipts. Re-read after a successful mutation before the next logical write.
Write an assigned task result link
PUT /api/v1/tasks/{id}/result-link requires Bearer authentication, tasks:update, JSON Content-Type and the current task If-Match ETag. Supply X-Task-Claim when a live lease requires it. An optional Idempotency-Key uses the existing 24-hour successful-receipt rules. The task must remain assigned to the client's resource in its organisation; completed committed tasks are supported.
PUT /api/v1/tasks/42/result-link
Authorization: Bearer EXAMPLE_TOKEN_NOT_VALID
Content-Type: application/json
If-Match: "task-42-plan-123"
{"title":"View result","url":"https://results.example/work/42"}
Only title and url are accepted and both are required. The title is nonblank, at most 200 characters and trimmed. The URL is at most 2048 characters and uses the existing absolute HTTP/HTTPS validation, rejecting credentials, control characters, backslashes and unsafe schemes. CYJ never fetches the URL or authenticates to the remote system.
Success is 204 No Content, without a body, with the task's updated ETag and Cache-Control: no-store. Read task detail first to obtain its ETag. Other organisation planning edits can invalidate it. A receipt replay returns the original write's ETag, which may since be stale.
There is one result link per API client per task, stored in the existing supporting links. First PUT appends it; subsequent PUT updates only that client's link in its existing position. Human and other-client links survive. Credential rotation retains the slot. Identical content with a current ETag is a no-op, with no duplicate or version increment, independent of retry receipts. A stale ETag is still rejected unless an existing successful receipt is replayed. For uncertain writes, replay the original key and body with a parseable If-Match, or GET task detail and retry with the current ETag. Changed content needs a new retry key.
The existing limit is 50 supporting links per stage. An existing result slot can still be updated at the limit. The ordinary UI displays and edits the same link; editing an existing link preserves its identity, and deletion allows a later PUT to recreate it. TaskPatch does not accept a links collection.
Errors follow existing problem responses: 400 request shape/required fields; 401 authentication_failed; 403 permission_denied or task_not_owned; 404 task_not_found for nonexistent or foreign-organisation stages; 409 claim/idempotency conflict; 412 stale_update; 422 validation_failed for URL/link-limit/committed-stage validation; 428 precondition_required; 429 rate_limited.
See the exact endpoint and schema reference and scope reference.
Execution reports use POST /api/v1/tasks/{id}/execution with action start (also resume), pause, or remaining plus remainingMinutes. Server timestamps establish boundaries and remaining-estimate age. The current task ETag, assigned resource, live claim and idempotency rules apply. Explicit InProgress PATCH also starts/resumes; notes, actual submissions and assistance resolution do not. Provisional elapsed execution informs forecasts without becoming actual work. Progress-only PATCH summaries are preserved as identified worker notes, while lifecycle changes remain explicit.
Open and close Actual work by ID
An Actual interval may confirm a start while its finish remains unknown. Open intervals contribute no confirmed actual minutes. They are independent of the execution journal: status changes, claims and lease expiry never invent a finish.
Both operations require tasks:time, an assigned caller resource, a current X-Task-Claim, If-Match and Idempotency-Key. Organisation and resource come only from authentication. Generate a fresh interval UUID per resumed session.
POST /api/v1/tasks/67/actual-intervals
{"id":"3ac2b3da-d408-4eab-8afa-cda10b4fd897","start":"2026-12-04T09:00:00"}
POST /api/v1/tasks/67/actual-intervals/3ac2b3da-d408-4eab-8afa-cda10b4fd897/close
{"end":"2026-12-04T09:35:00"}
Each returns HTTP 200 with id, staffMemberId, start and end (null until closed). GET task returns these same fields in actualIntervals; GET a fresh ETag before the next distinct write. Finishes must be observed, later than the start and no later than now. Same-resource intervals must not overlap.
Successful retry receipts replay the original result for 24 hours, with current authentication and assignment still required. Changed bodies/operations under one retry key conflict. An identical UUID/start returns its existing record without duplication; same finish is harmless, but changing a recorded finish conflicts. Other contributors remain untouched. If a claim has expired, reacquire before a new close or reconcile through the authorised task editor. The editor retains interval IDs and protects against stale form saves.