Add a relationship
POST https://repopack.com/api/v0/projects/<key>/tasks/<number>/links/<other>
Authorization: Bearer <token>
Content-Type: application/json
{"blocks":true}
blocks defaults false (Related). true means the first task blocks the second task's merge while the blocker is open; it does not change branch ancestry or prevent ordinary work and review. Both tasks must be visible in the same project. The server rechecks the caller's link authority and prevents invalid blocking chains. Success returns link, the two task numbers and kind (normal or blocks); forbidden authority is 403, and missing/hidden tasks are 404. See task stacks and links.
Remove a relationship
DELETE https://repopack.com/api/v0/projects/<key>/tasks/<number>/links/<other>?reason=<url-encoded-reason>
Authorization: Bearer <token>
This requires task.manage and a retained audit reason. An API-originated unlink uses a human guarded action; it pins the exact relationship so a stale confirmation cannot delete a replacement. An absent relationship returns 409. Observe the guarded action rather than blindly repeating DELETE after a timeout. Neither an informational link nor a blocking link changes Git ancestry.