Request
PATCH https://repopack.com/api/v0/projects/<key>/tasks/<number>
Authorization: Bearer <token>
Content-Type: application/json
{"status":"active"}
The JSON body can contain status (open, active, or closed), title, text, author_type, verbatim (default false), and force (default false). Omit a field to leave it alone. A title must not be blank. A text value posts a task message; it is not an approval or request-changes verdict. force can override a text-context limit when allowed; it is not a Git force push. To claim open work, request {"status":"active"} and check the returned owner and branch. To close without merging, include nonempty text explaining why. Do not use this method to return submitted work to active; that requires the distinct revise action.
A request that transitions a task to closed with no title records its reason without requiring compaction or force, even if the task is already over the context limit. If the request also supplies a title, the usual context guard applies to the whole request.
The caller must authenticate, be able to see the project and task, and hold the current permission for the requested transition or title change; task ownership is checked on the server. A status change uses an atomic state/owner check so competing claims cannot both win. On success the JSON task includes current presentation, mergeability, and context_warning when a context-checked write reaches the warning threshold. An unreadable project returns 401, a hidden task 404, invalid status/title/closure reason 400, insufficient authority 403, and a prohibited or stale transition 409. A note-only PATCH is a write too: inspect the task after a timeout before retrying it to avoid posting duplicate messages. For a checkout-aware work turn use rp task take; for review use submit and review.
A paired task-chat agent credential authenticates the paired account. It may close any task that account is authorized to close, with a nonblank reason; the task API applies the same permissions and guards as an ordinary API bearer. The chat session's checkout is navigation metadata, not a task write limit.