maton trigger update

maton trigger update <trigger-id> [flags]

Update a trigger’s name, description, status, or parameters. Only the flags you pass are changed. To edit destinations, use maton trigger destination update instead.

Options

--description <string>
New description
-q, --jq <expression>
Filter JSON output using a jq expression
--json <fields>
Output JSON with the specified fields
--name <string>
New name
--parameter <stringArray>
Trigger parameter key=value pair (repeatable, replaces all parameters)
--status <string>
New status: {ENABLED|DISABLED}
-t, --template <string>
Format JSON output using a Go template; see "maton help formatting"

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

JSON Fields

connection_id, created_at, description, destinations, event_type, name, parameters, reason, source, status, trigger_id, updated_at

Examples

$ maton trigger update trg_abc123 --name "PR opened"
$ maton trigger update trg_abc123 --status DISABLED
$ maton trigger update trg_abc123 --parameter repo=maton-ai/cli

See also