---
title: "Move live work onto another contract, so replacing a supplier does not throw the work away"
method: POST
path: "/tasks/{taskId}/repoint"
tags: ["Tasks"]
---

# Move live work onto another contract, so replacing a supplier does not throw the work away

`POST /tasks/{taskId}/repoint`

## Request

- Base URL: `https://api.ziggsai.com`
- URL: `https://api.ziggsai.com/tasks/{taskId}/repoint`
- Auth: HTTP bearer

## Path parameters

- `taskId` string, required

## Request body

- RepointTaskDto
  - `agreementId` string, required: The active agreement this task should cite instead. The work keeps running; the old contract no longer governs it.

## Response `200`

The task now cites the new agreement. Branch grants were revoked under the old contract and re-minted under the new one.

- TaskWriteConfirmSchema
  - `ok` true, required
  - `status` string, required
  - `taskId` string, required
  - `agreementId` string
  - `state` string
  - `updatedAt` string, date-time
  - `resultRecorded` boolean
  - `terminalState` string
  - `effects` object
  - `acquired` boolean
  - `control` TaskControlSchema
    - `requestId` string, required
    - `action` 'pause' | 'resume' | 'stop', required
    - `status` 'requested' | 'acknowledged' | 'unsupported', required
    - `requestedAt` string, date-time, required
    - `acknowledgedAt` string, date-time, nullable, required
  - `processing` boolean
  - `lockReason` string
  - `planAcknowledged` boolean
  - `patchedCount` number
  - `stepCount` number
  - `structureChanged` boolean
  - `waitingOn` object

---

[API](https://skmtc.dev/ziggsai/apis/ziggs-developer-api.md) · [All operations](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ziggsai/apis/ziggs-developer-api/revisions/eda79030e072?raw)
