FruxonDocs
Agent NetworkTriggers

Moves the cursor — where the next scan starts.

A compare-and-swap on the version the operator read from `GET …/cursor`: a pass that advanced it in between wins and the reset is refused with 409. Moving the cursor never re-runs admitted work (admission collides on the item key); it decides where the next scan begins. Null starts from the door's own horizon.

POST
/v1/tenants/{tenant}/triggers/{trigger}/ledger/cursor:reset
AuthorizationBearer <token>

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

In: header

Path Parameters

trigger*string

The trigger identifier.

Formatuuid
tenant*string

The tenant identifier

The new position and the version being replaced.

value?string|null

The new position, in the source's own watermark format — or null to start from the door's own horizon.

Lengthlength <= 4000
expectedVersion*integer

The version the operator read (GET …/cursor). The write is a compare-and-swap on it, so a pass that advanced the cursor in between wins and the reset is refused (409) rather than silently undoing that pass.

Formatint64
[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger/cursor:reset" \  -H "Content-Type: application/json" \  -d '{    "expectedVersion": 0  }'
{
  "ledgerId": "00000000-0000-0000-0000-000000000000",
  "value": "string",
  "version": 0,
  "lastScanCompletedAt": 0,
  "lastItemAdmittedAt": 0,
  "updatedAt": 0,
  "updatedByRunId": "00000000-0000-0000-0000-000000000000"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}