Update Trigger
PATCH
/api/automations/triggers/{trigger_id}
const url = 'http://localhost:8000/api/automations/triggers/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”trigger_id
required
Trigger Id
string
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
TriggerPatch
object
actions
Any of:
Array<object>
object
key
additional properties
any
null
scope_workbook_ids
Any of:
Array<string>
null
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": {}}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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" } ]}