FruxonDocs
ApiTriggers

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.

PUT
/v1/tenants/{tenant}/triggers/{trigger}/bindings/{binding}
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
binding*string

The agent identifier to bind.

tenant*string

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"
    }
  ],
  "outputBindingId": "00000000-0000-0000-0000-000000000000"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}