Browse API

Restack a task

Reconcile a child branch with its parent's current head.

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

Request

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

{}

The server attempts to reconcile a stacked child onto its parent's current head. The caller must have project/task visibility and the stack operation's own authority; an unreadable project returns 401 and a hidden task 404. A successful response has task and restacked; operation-specific refusal may report a conflict or missing remote head. Do not replace the parent's work on master, or infer that local branches were updated. Inspect the response, read the stack, then follow the reported checkout/rebase recovery. Task stacks explains bottom-up merge order.