Create events.
ROLES: AUTOMATION_ADMIN USER: true SERVICE ACCOUNT: true
curl --request POST \
--url https://api.revoengine.com/api/v1/automation/event \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom": true,
"name": "<string>",
"targetId": "<string>",
"active": true,
"type": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom: true,
name: '<string>',
targetId: '<string>',
active: true,
type: '<string>'
})
};
fetch('https://api.revoengine.com/api/v1/automation/event', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/event"
payload = {
"custom": True,
"name": "<string>",
"targetId": "<string>",
"active": True,
"type": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Body
true: user-triggerable custom event; false: native platform event, replayable only from history.
Provide name of trigger.
Normalized execution target type used by runtime dispatch.
JOB_TEMPLATE, AGENT, PLATFORM_OPERATION Normalized execution target id aligned with targetType.
Active.
Event routing name without an implicit prefix. Native types use the platform event catalogue; custom types use a user-defined name.
Runtime input for Job targets, exposed through api.input("templateInputs"). Defaults to {}. Override is shallow; Deep Override recursively merges objects. Automation keys take precedence; arrays and null replace whole values. Does not change the event message, Job execution policy, concurrency or retry settings.
{ "export": { "format": "csv" } }
override: shallow overlay onto Job templateInputs; deep_override: recursively overlay objects, replacing arrays and retaining null as a value; automation keys win in both modes; replace: replace all Job templateInputs, including clearing them with {}. Defaults to override.
override, deep_override, replace "override"
Category.
Description.
Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
Optional reserved target version metadata. Ignored for AGENT targets, which always execute the current Agent definition.
Optional normalized target configuration payload reserved for future target-specific execution settings.
Optional FilterNode-compatible event message filter evaluated against { type, message } before scheduling the target.
Response
Job scheduled.
curl --request POST \
--url https://api.revoengine.com/api/v1/automation/event \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom": true,
"name": "<string>",
"targetId": "<string>",
"active": true,
"type": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
custom: true,
name: '<string>',
targetId: '<string>',
active: true,
type: '<string>'
})
};
fetch('https://api.revoengine.com/api/v1/automation/event', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/event"
payload = {
"custom": True,
"name": "<string>",
"targetId": "<string>",
"active": True,
"type": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
