Adds (or returns the existing) binding between the trigger and an agent.
Binds the trigger to an agent so the agent runs whenever the trigger fires. The call is idempotent: an existing binding is returned unchanged rather than duplicated. Returns 404 when the trigger does not exist.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The trigger identifier.
uuidThe agent identifier to bind.
The tenant identifier
Response Body
curl -X PUT "https://api.fruxon.com/v1/tenants/string/triggers/497f6eca-6276-4993-bfeb-53cbbbba6f08/bindings/string"{
"id": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"createdAt": 0,
"modifiedAt": 0,
"triggerId": "00000000-0000-0000-0000-000000000000",
"agentId": "string",
"parameterMappings": [
{
"parameterName": "string",
"kind": "LITERAL",
"value": "string"
}
],
"environmentSlug": "string",
"outputBindingId": "00000000-0000-0000-0000-000000000000"
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Removes the binding between the trigger and an agent
Unbinds the trigger from an agent so the agent no longer runs when the trigger fires. The call is idempotent: removing a binding that does not exist still succeeds with 204. Neither the trigger nor the agent is deleted.
Gets one of an automation's spend limits, with what it has spent in the current window
An automation spends through several agents — the ones its stages run, the one that holds its questions as conversations, the one that writes its report — and each agent keeps its own limits. This limit is on the automation as a whole: every production run the automation caused counts, whichever agent made it, and only those. An agent's limits still apply beside it; a run has to fit under both. A `null` body means no limit is set for the window, not that the automation is free to spend: its agents' limits still bind. A 404 means the automation does not exist or the caller cannot reach its Application.