FruxonDocs
AgentsExecution Records

Runs an agent's held runs again

The limits are checked first: when the agent would be refused again (for example its weekly cap still binds after the daily one was raised) nothing is released and the answer is 409 with the reason. The answer carries how many runs were queued, how many still wait, and their estimated cost at the agent's average per run over the last 7 days (null with fewer than 5 runs).

POST
/v1/tenants/{tenant}/agents/{agent}/heldRuns:release
AuthorizationBearer <token>

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

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

All held runs, or the ones named by task id.

all?boolean

Every held run of the agent. Either this or HeldRunSelection.TaskIds, not both.

taskIds?|null

The held runs to act on, by task id (as the held-runs list gives them).

Itemsitems <= 500
newestPerKey?boolean

Release only the newest run of each piece of work: of a trigger's runs with the same release key (the same pull request, say), the older ones are superseded and never run. Ignored by a discard.

[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/heldRuns:release" \  -H "Content-Type: application/json" \  -d '{}'
{
  "requested": 0,
  "superseded": 0,
  "stillHeld": 0,
  "estimatedCost": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
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
}