Browse API

Create a task

Create open work on a verified project branch or stack parent.

POST/api/v0/projects/<key>/tasks

Request

POST https://repopack.com/api/v0/projects/<key>/tasks
Authorization: Bearer <token>
Content-Type: application/json

{"title":"Investigate build failure","text":"Observed failure and next step","base_ref":"master"}

The body accepts title (required), text (default empty), verbatim (default false), base_ref (default master), parent (optional task number for a stack), and force (default false for text-limit confirmation). The project must be active and the token's account must have task.create. parent also requires task.read because resolving a stack parent reveals task state. The base must exist; a task/ branch cannot be passed as base_ref without stacking on the parent number. A closed or unpushed parent cannot be stacked on.

Response and failure

On success the response is the created task presentation with context_warning; the task starts open. This API operation does not claim work, change the local checkout or push a branch. A missing token returns 401, missing project/parent 404, missing permission 403, and invalid base/stack/text 400 (text-limit errors have their own structured response). A concurrent parent closure can refuse creation. Do not blindly retry after an uncertain response: search for the task and inspect its number first. For a managed local work turn, use rp task create and rp task take.