Add a trigger action

Appends one action to the trigger and returns it with its server-assigned triggerActionId. The action type cannot be changed later.
Template rules follow the ControlUp Console: CloudEmail, RecordEventLog, SmtpEmail and ScriptAction require a templateId, WebHook accepts an
optional WebHook-format template, and DumpToDisk and PlaySound accept none. Community triggers are read-only (409).
The settings fields are the ones the Console stores: WebHook url and method; CloudEmail to (member GUIDs); SmtpEmail to and cc; DumpToDisk path and types;
RecordEventLog eventType. Subjects, bodies, senders and headers belong to the template, so sending subject, body, from, headers or any other field is 422 typeSettings_invalid.
PlaySound and ScriptAction are read-only here: creating or editing them is 422 triggerActionType_unavailable.
Errors: 422 with errorCode triggerActionType_unavailable, triggerActionType_not_supported_for_trigger, templateId_required, templateId_not_supported,
templateId_not_found, templateId_format_mismatch, resendBehavior_not_supported, resendBehavior_invalid, actions_limit_exceeded, action_too_large, typeSettings_invalid.

Path Params
string
required

Trigger GUID.

Body Params

The action to add.

Request-body shape for an action attached to a trigger on create. Omits triggerActionId, which is server-generated.

string | null
string | null
string | null
boolean | null
boolean | null
resendBehavior
object
settings
object
Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json