Case Triggers

Configure case triggers that automatically dispatch agent runs (Jobs in the Duvo UI) for cases added to a queue

get

List the case triggers configured for an agent. Each trigger automatically dispatches the agent to run cases added to a queue.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Responses
200

Default Response

application/json
get
/v1/agents/{agent_id}/case-triggers
post

Create a case trigger for an agent. An agent may have at most one case trigger; this returns 409 if one already exists.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Body
case_queue_idstring · uuidRequired

Queue whose new cases should trigger this agent

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
enabledbooleanRequired

Whether the trigger is active. Disabled triggers do not dispatch runs.

concurrencyinteger · max: 9007199254740991 · nullableOptional

Maximum number of concurrent runs for this trigger. Null/omitted means unlimited.

Responses
post
/v1/agents/{agent_id}/case-triggers
get

Preview which other agents would conflict with this agent's case trigger if it pointed at the given case queue. Does not modify the trigger.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Query parameters
case_queue_idstring · uuidRequired

The case queue to check for conflicts against

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Responses
200

Default Response

application/json
has_conflictbooleanRequired
get
/v1/agents/{agent_id}/case-triggers/conflict-preview
get

Retrieve a single case trigger by id.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
trigger_idstring · uuidRequired

The case trigger's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Responses
200

Default Response

application/json
get
/v1/agents/{agent_id}/case-triggers/{trigger_id}
delete

Delete a case trigger. Only the trigger creator or a builder/admin can delete it.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
trigger_idstring · uuidRequired

The case trigger's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Responses
200

Default Response

application/json
successboolean · enumRequiredPossible values:
delete
/v1/agents/{agent_id}/case-triggers/{trigger_id}
patch

Update fields on a case trigger. Only the trigger creator or a builder/admin can disable an enabled trigger or change its queue.

Authorizations
AuthorizationstringRequired

API key authentication. Get your API key from the Duvo dashboard.

Path parameters
agent_idstring · uuidRequired

The agent's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
trigger_idstring · uuidRequired

The case trigger's unique identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Body
case_queue_idstring · uuidOptional

Queue whose new cases should trigger this agent

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
enabledbooleanOptional

Whether the trigger is active. Disabled triggers do not dispatch runs.

concurrencyinteger · max: 9007199254740991 · nullableOptional

Maximum number of concurrent runs for this trigger. Null clears the limit.

Responses
200

Default Response

application/json
patch
/v1/agents/{agent_id}/case-triggers/{trigger_id}

Last updated