FruxonDocs
ApiHumantask

Backfills the durable human_tasks table from the tenant's existing approval rows.

Pages every `HumanApprovalRequest` in the tenant and mirrors it into `human_tasks` via the idempotent upsert, so the durable table covers rows created before dual-write started. A no-op (`skipped: true`) when the storage mode is Off — enable dual-write first. Idempotent and re-runnable; the response reports how many rows were scanned and mirrored. The tenant scope is applied automatically by the query layer.

POST
/v1/tenants/{tenant}/humanTasks/backfill
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

tenant*string

The tenant identifier

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/humanTasks/backfill"
{
  "scanned": 0,
  "mirrored": 0,
  "skipped": false
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}