---
title: "Re-sync every wire-contract publishing account so its tool rows record a wire contract"
method: POST
path: "/v1/admin/integrations/wire-contract-digests/backfills"
tags: ["admin"]
---

# Re-sync every wire-contract publishing account so its tool rows record a wire contract

`POST /v1/admin/integrations/wire-contract-digests/backfills`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/admin/integrations/wire-contract-digests/backfills`
- Auth: HTTP bearer

Queues the one-off fleet sweep that re-syncs every connected account of a provider that publishes a wire contract, so each of its enabled tool rows records the digest of the contract it dispatches. Idempotent and re-runnable: each account commits on its own, so a partial run keeps everything it finished. Poll ``GET /v1/admin/integrations/wire-contract-digests`` for the verdict. Internal admin users only.

## Response `202`

Successful Response

- WireContractBackfillResult: Ack that the fleet wire-contract-digest backfill was enqueued.
  - `task_id` string, nullable: Broker task id, for tracing the sweep's logs.

## Other responses

- `401`: Unauthorized
- `403`: Permission denied (PERMISSION_DENIED) or email not verified (EMAIL_NOT_VERIFIED)
- `404`: Not found
- `409`: Conflict: admin write rejected on a state invariant. Inspect ``errors[0].type`` for the specific case (for example: ``self_action_forbidden``, ``already_disabled``, ``not_disabled``, ``last_internal_admin``, ``value_error``)
- `422`: Validation error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
