Skip to main content

PT-604: atomically claim the top task in the project ready set (PT-602) for `assigneeId`

POST 

/api/projects/:id/tasks/claim-next-ready

PT-604: atomically claim the top task in the project ready set (PT-602) for assigneeId. Race-free (READ COMMITTED conditional CAS — concurrent callers never both claim the same task; the loser advances to the next ready row) and audited in the same transaction. The claimed task moves to the project's first in_progress-category status (by sortOrder); a project with no such status keeps the task status unchanged. Returns { data: <task> } on success, or { data: null } (still HTTP 200) when nothing is ready.

Request

Responses

Successful response