Skip to content

Update Trigger

PATCH
/api/automations/triggers/{trigger_id}
curl --request PATCH \
--url http://localhost:8000/api/automations/triggers/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "actions": [ {} ], "condition": "example", "enabled": true, "max_actions_per_day": 1, "max_spend_usd_per_day": 1, "name": "example", "scope_workbook_ids": [ "example" ], "stop_on_error": true, "trigger_config": {} }'
trigger_id
required
Trigger Id
string
x-workspace-id
Any of:
string
Media typeapplication/json
TriggerPatch
object
actions
Any of:
Array<object>
object
key
additional properties
any
condition
Any of:
string
enabled
Any of:
boolean
max_actions_per_day
Any of:
integer
max_spend_usd_per_day
Any of:
number
name
Any of:
string
scope_workbook_ids
Any of:
Array<string>
stop_on_error
Any of:
boolean
trigger_config
Any of:
object
key
additional properties
any
Examplegenerated
{
"actions": [
{}
],
"condition": "example",
"enabled": true,
"max_actions_per_day": 1,
"max_spend_usd_per_day": 1,
"name": "example",
"scope_workbook_ids": [
"example"
],
"stop_on_error": true,
"trigger_config": {}
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}