Command

nylas webhook update

The nylas webhook update command modifies a webhook destination. Change the delivery URL with --url, or add and remove trigger types with --triggers. Pass the webhook ID with --id. Changes take effect immediately — the next event fires to the updated URL.

Usage

nylas webhook update --id WEBHOOK_ID [--url URL] [--triggers TRIGGERS]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--idWebhook ID to update
--urlNew destination URL
--triggersComma-separated trigger types to subscribe to

Examples

Change the webhook URL

nylas webhook update --id wh_abc123def456 --url https://new-endpoint.example.com/webhook

Add a trigger type

nylas webhook update --id wh_abc123def456 --triggers message.created,event.created,event.updated

Troubleshooting

Webhook not found

Run nylas webhook list to confirm the webhook ID. It may have been deleted.

Invalid trigger type

Run nylas webhook triggers to see valid types. Trigger names are case-sensitive.

Recommended guides

Run nylas webhook update --help for full help output.