maton trigger destination create
maton trigger destination create --trigger <trigger-id> --url <url> [flags]
Add a destination that the trigger delivers matching events to.
Options
-
--body-template <string> - Body template for the webhook payload
-
--header <stringArray> - Header key=value pair (repeatable)
-q,--jq <expression>- Filter JSON output using a jq expression
-
--json <fields> - Output JSON with the specified fields
-
--method <string> (default "POST") - HTTP method
-
--name <string> - Human-readable name
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
-t,--trigger <string>- Trigger ID this resource belongs to (required)
-
--url <string> - Destination URL, must start with https:// (required)
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
JSON Fields
body_template, created_at, destination_id, headers, method, name, reason, signing_secret, status, updated_at, url
Examples
$ maton trigger destination create --trigger trg_abc123 --url https://httpbin.org/post
$ maton trigger destination create --trigger trg_abc123 --url https://httpbin.org/post \
--method POST --name prod --header X-Token=secret