AgentWorkflowTrigger
The triggers that start an agent's workflows: list, read, change or remove one, or pause or resume it (actions).
Operations
Every route this entity exposes. Each route links to its own reference on this page.
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
agent_workflow_triggers, err := client.AgentWorkflowTrigger(nil).List(map[string]any{"agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_workflow_triggers)
agent_workflow_trigger, err := client.AgentWorkflowTrigger(nil).Load(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(agent_workflow_trigger)
updated, err := client.AgentWorkflowTrigger(nil).Update(map[string]any{"id": "example_id", "agent_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
removed, err := client.AgentWorkflowTrigger(nil).Remove(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local agent_workflow_triggers, err = client:AgentWorkflowTrigger():list({ agent_id = "example", organization_id = "example" })
local agent_workflow_trigger, err = client:AgentWorkflowTrigger():load({ agent_id = "example", id = "example_id", organization_id = "example" })
local updated, err = client:AgentWorkflowTrigger():update({ id = "example_id", agent_id = "example", organization_id = "example" })
local removed, err = client:AgentWorkflowTrigger():remove({ agent_id = "example", id = "example_id", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$agent_workflow_triggers = $client->AgentWorkflowTrigger()->list(["agent_id" => "example", "organization_id" => "example"]);
$agent_workflow_trigger = $client->AgentWorkflowTrigger()->load(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);
$updated = $client->AgentWorkflowTrigger()->update(["id" => "example_id", "agent_id" => "example", "organization_id" => "example"]);
$client->AgentWorkflowTrigger()->remove(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
agent_workflow_triggers = client.AgentWorkflowTrigger().list({"agent_id": "example", "organization_id": "example"})
agent_workflow_trigger = client.AgentWorkflowTrigger().load({"agent_id": "example", "id": "example_id", "organization_id": "example"})
updated = client.AgentWorkflowTrigger().update({"id": "example_id", "agent_id": "example", "organization_id": "example"})
client.AgentWorkflowTrigger().remove({"agent_id": "example", "id": "example_id", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
agent_workflow_triggers = client.AgentWorkflowTrigger.list({ "agent_id" => "example", "organization_id" => "example" })
agent_workflow_trigger = client.AgentWorkflowTrigger.load({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })
updated = client.AgentWorkflowTrigger.update({ "id" => "example_id", "agent_id" => "example", "organization_id" => "example" })
client.AgentWorkflowTrigger.remove({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const agent_workflow_triggers = await client.AgentWorkflowTrigger().list({ agent_id: "example", organization_id: "example" })
const agent_workflow_trigger = await client.AgentWorkflowTrigger().load({ agent_id: "example", id: "example_id", organization_id: "example" })
const updated = await client.AgentWorkflowTrigger().update({ id: "example_id", agent_id: "example", organization_id: "example" })
await client.AgentWorkflowTrigger().remove({ agent_id: "example", id: "example_id", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
budget |
one,object,null |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
can_manage |
boolean |
Yes | Can Manage |
can_pause |
boolean |
Yes | It is running, so a manager can pause it |
can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
daily_limit |
one,integer,null |
Yes | How many events a day may start an event workflow's runs |
day_resets_at |
one,string,null |
Yes | When the daily count starts again, at the organization's midnight |
id |
string |
Yes | Id |
kind |
string |
Yes | Kind |
next_due_at |
one,string,null |
Yes | Next Due At |
pause_cause |
one,string,null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
read_at |
one,string,null |
Yes | The settings_changed_at you read; a change made since is refused |
run_budget_usd |
one,number,null |
Yes | Run Budget Usd |
schedule |
one,object,null |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
settings_changed_at |
one,string,null |
Yes | When a person or the agent last changed the run settings; sent back with a change |
skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
stale_at |
one,string,null |
Yes | When the workflow was paused; it starts nothing until resumed |
stale_reason |
one,string,null |
Yes | Stale Reason |
starts |
one,object,null |
Yes | What events start an event workflow, as a proposal's start shows them |
subscription_id |
one,string,null |
Yes | The event subscription that starts it |
time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
today_count |
one,integer,null |
Yes | Events that started a run today, for an event workflow |
trigger |
object |
Yes | Trigger |
workflow_path |
string |
Yes | Workflow Path |
list
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers
Operation ID: spark_workflow_triggers_api_v1_organization_persistent_agent.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: What starts this agent's workflows without a chat turn
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
items |
array of object |
Yes | |
items[].budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
items[].budget.period |
enum: day, week, month |
Yes | |
items[].budget.resets_at |
string |
Yes | |
items[].budget.run_seconds |
integer |
Yes | |
items[].budget.run_usd |
number |
Yes | |
items[].budget.spent_usd |
number |
Yes | |
items[].budget.usd |
number |
Yes | The period budget, or null without one |
items[].can_pause |
boolean |
Yes | It is running, so a manager can pause it |
items[].can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
items[].can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
items[].daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
items[].day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
items[].id |
string |
Yes | |
items[].kind |
enum: event, schedule |
Yes | |
items[].next_due_at |
string |
Yes | |
items[].pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
items[].paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
items[].schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
items[].schedule.anchor |
string |
No | |
items[].schedule.expression |
string |
No | |
items[].schedule.seconds |
integer |
No | |
items[].schedule.timezone |
string |
No | |
items[].schedule.type |
enum: cron, interval |
Yes | |
items[].settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
items[].skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
items[].stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
items[].stale_reason |
string |
Yes | |
items[].starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
items[].starts.event_kinds |
array of string |
Yes | |
items[].starts.min_severity |
string |
Yes | |
items[].starts.source |
string |
Yes | |
items[].subscription_id |
string |
Yes | The event subscription that starts it |
items[].time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
items[].today_count |
integer |
Yes | Events that started a run today, for an event workflow |
items[].workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}
Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Responses
200: A workflow's run settings
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
trigger |
object |
Yes | |
trigger.budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
trigger.budget.period |
enum: day, week, month |
Yes | |
trigger.budget.resets_at |
string |
Yes | |
trigger.budget.run_seconds |
integer |
Yes | |
trigger.budget.run_usd |
number |
Yes | |
trigger.budget.spent_usd |
number |
Yes | |
trigger.budget.usd |
number |
Yes | The period budget, or null without one |
trigger.can_pause |
boolean |
Yes | It is running, so a manager can pause it |
trigger.can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
trigger.can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
trigger.daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
trigger.day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
trigger.id |
string |
Yes | |
trigger.kind |
enum: event, schedule |
Yes | |
trigger.next_due_at |
string |
Yes | |
trigger.pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
trigger.paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
trigger.schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
trigger.schedule.anchor |
string |
No | |
trigger.schedule.expression |
string |
No | |
trigger.schedule.seconds |
integer |
No | |
trigger.schedule.timezone |
string |
No | |
trigger.schedule.type |
enum: cron, interval |
Yes | |
trigger.settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
trigger.skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
trigger.stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
trigger.stale_reason |
string |
Yes | |
trigger.starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
trigger.starts.event_kinds |
array of string |
Yes | |
trigger.starts.min_severity |
string |
Yes | |
trigger.starts.source |
string |
Yes | |
trigger.subscription_id |
string |
Yes | The event subscription that starts it |
trigger.time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
trigger.today_count |
integer |
Yes | Events that started a run today, for an event workflow |
trigger.workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}/review
Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_review.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Responses
200: The version a person last checked and the file as it is now
application/json
| Property | Type | Required | Description |
|---|---|---|---|
checked_source |
string |
Yes | |
digest |
string |
Yes | |
error |
string |
Yes | |
source |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}/skipped
Operation ID: get_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_skipped.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Responses
200: Events the workflow skipped today, newest first
application/json
| Property | Type | Required | Description |
|---|---|---|---|
count |
integer |
Yes | |
items |
array of object |
Yes | |
items[].can_run |
boolean |
Yes | The event can still start a run by hand: its details haven't expired and the workflow is running |
items[].created_at |
string |
Yes | |
items[].expired |
boolean |
Yes | Its details are gone, so it can't start a run |
items[].id |
string |
Yes | |
items[].kind |
string |
Yes | |
items[].reference |
string |
Yes | |
items[].source |
string |
Yes | |
items[].status |
enum: over_limit, paused |
Yes | |
items[].title |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}
Operation ID: delete_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
204: The trigger no longer starts its workflow
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PATCH /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}
Operation ID: patch_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
daily_limit |
integer |
Yes | |
read_at |
string |
Yes | The settings_changed_at you read; a change made since is refused |
run_budget_usd |
number |
Yes |
Responses
200: The changed run settings
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
trigger |
object |
Yes | |
trigger.budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
trigger.budget.period |
enum: day, week, month |
Yes | |
trigger.budget.resets_at |
string |
Yes | |
trigger.budget.run_seconds |
integer |
Yes | |
trigger.budget.run_usd |
number |
Yes | |
trigger.budget.spent_usd |
number |
Yes | |
trigger.budget.usd |
number |
Yes | The period budget, or null without one |
trigger.can_pause |
boolean |
Yes | It is running, so a manager can pause it |
trigger.can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
trigger.can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
trigger.daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
trigger.day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
trigger.id |
string |
Yes | |
trigger.kind |
enum: event, schedule |
Yes | |
trigger.next_due_at |
string |
Yes | |
trigger.pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
trigger.paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
trigger.schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
trigger.schedule.anchor |
string |
No | |
trigger.schedule.expression |
string |
No | |
trigger.schedule.seconds |
integer |
No | |
trigger.schedule.timezone |
string |
No | |
trigger.schedule.type |
enum: cron, interval |
Yes | |
trigger.settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
trigger.skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
trigger.stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
trigger.stale_reason |
string |
Yes | |
trigger.starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
trigger.starts.event_kinds |
array of string |
Yes | |
trigger.starts.min_severity |
string |
Yes | |
trigger.starts.source |
string |
Yes | |
trigger.subscription_id |
string |
Yes | The event subscription that starts it |
trigger.time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
trigger.today_count |
integer |
Yes | Events that started a run today, for an event workflow |
trigger.workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Refused
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Refused
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes | |
errors |
object |
No | Each field's errors |
502: Bad gateway
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}/pause
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_pause.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: The paused workflow's run settings
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
trigger |
object |
Yes | |
trigger.budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
trigger.budget.period |
enum: day, week, month |
Yes | |
trigger.budget.resets_at |
string |
Yes | |
trigger.budget.run_seconds |
integer |
Yes | |
trigger.budget.run_usd |
number |
Yes | |
trigger.budget.spent_usd |
number |
Yes | |
trigger.budget.usd |
number |
Yes | The period budget, or null without one |
trigger.can_pause |
boolean |
Yes | It is running, so a manager can pause it |
trigger.can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
trigger.can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
trigger.daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
trigger.day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
trigger.id |
string |
Yes | |
trigger.kind |
enum: event, schedule |
Yes | |
trigger.next_due_at |
string |
Yes | |
trigger.pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
trigger.paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
trigger.schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
trigger.schedule.anchor |
string |
No | |
trigger.schedule.expression |
string |
No | |
trigger.schedule.seconds |
integer |
No | |
trigger.schedule.timezone |
string |
No | |
trigger.schedule.type |
enum: cron, interval |
Yes | |
trigger.settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
trigger.skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
trigger.stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
trigger.stale_reason |
string |
Yes | |
trigger.starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
trigger.starts.event_kinds |
array of string |
Yes | |
trigger.starts.min_severity |
string |
Yes | |
trigger.starts.source |
string |
Yes | |
trigger.subscription_id |
string |
Yes | The event subscription that starts it |
trigger.time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
trigger.today_count |
integer |
Yes | Events that started a run today, for an event workflow |
trigger.workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Refused
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}/resume
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_resume.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: The resumed workflow's run settings
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
trigger |
object |
Yes | |
trigger.budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
trigger.budget.period |
enum: day, week, month |
Yes | |
trigger.budget.resets_at |
string |
Yes | |
trigger.budget.run_seconds |
integer |
Yes | |
trigger.budget.run_usd |
number |
Yes | |
trigger.budget.spent_usd |
number |
Yes | |
trigger.budget.usd |
number |
Yes | The period budget, or null without one |
trigger.can_pause |
boolean |
Yes | It is running, so a manager can pause it |
trigger.can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
trigger.can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
trigger.daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
trigger.day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
trigger.id |
string |
Yes | |
trigger.kind |
enum: event, schedule |
Yes | |
trigger.next_due_at |
string |
Yes | |
trigger.pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
trigger.paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
trigger.schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
trigger.schedule.anchor |
string |
No | |
trigger.schedule.expression |
string |
No | |
trigger.schedule.seconds |
integer |
No | |
trigger.schedule.timezone |
string |
No | |
trigger.schedule.type |
enum: cron, interval |
Yes | |
trigger.settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
trigger.skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
trigger.stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
trigger.stale_reason |
string |
Yes | |
trigger.starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
trigger.starts.event_kinds |
array of string |
Yes | |
trigger.starts.min_severity |
string |
Yes | |
trigger.starts.source |
string |
Yes | |
trigger.subscription_id |
string |
Yes | The event subscription that starts it |
trigger.time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
trigger.today_count |
integer |
Yes | Events that started a run today, for an event workflow |
trigger.workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Refused
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Unprocessable entity
502: Bad gateway
POST /api/v1/organizations/{organization_id}/agents/{id}/spark/workflow_triggers/{trigger_id}/review
Operation ID: post_api_v1_organizations_organization_id_agents_id_spark_workflow_triggers_trigger_id_review.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
trigger_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
digest |
string |
Yes |
Responses
200: The resumed workflow's run settings
application/json
| Property | Type | Required | Description |
|---|---|---|---|
can_manage |
boolean |
Yes | |
trigger |
object |
Yes | |
trigger.budget |
object |
Yes | Each run's limits, and what the trigger may spend per period with its runs' spend in the current one |
trigger.budget.period |
enum: day, week, month |
Yes | |
trigger.budget.resets_at |
string |
Yes | |
trigger.budget.run_seconds |
integer |
Yes | |
trigger.budget.run_usd |
number |
Yes | |
trigger.budget.spent_usd |
number |
Yes | |
trigger.budget.usd |
number |
Yes | The period budget, or null without one |
trigger.can_pause |
boolean |
Yes | It is running, so a manager can pause it |
trigger.can_resume |
boolean |
Yes | A person paused it, so a manager can resume it |
trigger.can_review |
boolean |
Yes | The file changed and nobody checked it, so a manager can review it and resume |
trigger.daily_limit |
integer |
Yes | How many events a day may start an event workflow's runs |
trigger.day_resets_at |
string |
Yes | When the daily count starts again, at the organization's midnight |
trigger.id |
string |
Yes | |
trigger.kind |
enum: event, schedule |
Yes | |
trigger.next_due_at |
string |
Yes | |
trigger.pause_cause |
enum: person, unchecked, steps, held, null |
Yes | A person paused it, the file changed and nobody checked it, the saved steps can't run on it, or it is kept only so its subscription starts nothing |
trigger.paused |
boolean |
Yes | The workflow starts nothing until a person resumes or checks it |
trigger.schedule |
object |
Yes | A cron expression with its time zone, or an interval in seconds from an anchor time |
trigger.schedule.anchor |
string |
No | |
trigger.schedule.expression |
string |
No | |
trigger.schedule.seconds |
integer |
No | |
trigger.schedule.timezone |
string |
No | |
trigger.schedule.type |
enum: cron, interval |
Yes | |
trigger.settings_changed_at |
string |
Yes | When a person or the agent last changed the run settings; sent back with a change |
trigger.skipped_today |
integer |
Yes | Events skipped today, over the daily limit or while paused |
trigger.stale_at |
string |
Yes | When the workflow was paused; it starts nothing until resumed |
trigger.stale_reason |
string |
Yes | |
trigger.starts |
object |
Yes | What events start an event workflow, as a proposal's start shows them |
trigger.starts.event_kinds |
array of string |
Yes | |
trigger.starts.min_severity |
string |
Yes | |
trigger.starts.source |
string |
Yes | |
trigger.subscription_id |
string |
Yes | The event subscription that starts it |
trigger.time_zone |
string |
Yes | The organization's IANA time zone, which the daily limit and budget periods count in |
trigger.today_count |
integer |
Yes | Events that started a run today, for an event workflow |
trigger.workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Refused
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |