Repair request writeback
POST /api/v1/writeback/repair: request fields and declared response contract.
POST/api/v1/writeback/repair
| Permission | writeback.repair.override |
|---|---|
| Workspace scope | required |
| Scope target | workspace |
Request body
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
| ledgerId | string | required | non-null | — |
| action | "retry" | "escalate" | "resolve" | "force_commit" | "cancel" | required | non-null | — |
| reason | string | optional | non-null | — |
| correlationId | string | optional | non-null | — |
Response
201
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
| data | object | required | non-null | — |
| data.ledgerId | string | required | non-null | — |
| data.action | string | required | non-null | — |
| data.state | string | required | non-null | — |
| data.auditOperationId | string | required | non-null | — |
Declared failures
| WRITEBACK_REPAIR_DENIED | 403 — not retryable |
|---|---|
| WRITEBACK_REPAIR_INVALID | 400 — not retryable |
Readback
Read the result back with:
- writeback.getRequest
Request example
Schematic only. Replace placeholders with real values and include all required nested fields.
POST /api/v1/writeback/repair HTTP/1.1
Authorization: Bearer <token>
x-merulan-workspace-id: <workspace-id>
Content-Type: application/json
{
"ledgerId": "<ledgerId>",
"action": "retry"
}