Skip to content

Update Webhook

PUT https://api.echovalue.dev/webhook/<webhookId>

Replaces the full webhook document for the specified webhookId. url is required.

PATCH https://api.echovalue.dev/webhook/<webhookId>

Updates only the fields you provide.

webhookId is a path parameter and is not allowed in the request body.

HeaderDescription
x-tokenYour API token
Content-TypeMust be application/json

Use PUT when you want to send the full new configuration.

Replace the webhook with mailbox mode by sending mailbox-only fields and omitting schedule.

{
"url": "https://hooks.slack.com/services/XXX/YYY/ZZZ",
"format": "slack",
"includeAttachments": false
}

Replace the webhook with scheduled mode by sending schedule and omitting mailbox-only fields.

{
"url": "https://example.com/hooks/daily-sync",
"schedule": {
"cron": "0 9 * * *",
"timezone": "Europe/Rome",
"active": true
}
}

Use PATCH when you want to update only part of the configuration.

FieldBehavior
urlReplaced when provided
headersReplaces the full headers object. Use {} to clear it.
formatMailbox-only field. Replaced when provided.
templateMailbox-only field. Replaces the template. Use null to remove it.
optionsMailbox-only field. Replaces the full options object. Use {} to clear it.
includeAttachmentsMailbox-only field. Replaced when provided.
scheduleScheduled field. Updates only the provided schedule fields. Use null to remove scheduling entirely.
{
"headers": {
"X-Source": "support-inbox"
},
"includeAttachments": false
}
{
"schedule": {
"active": false
}
}
  • Inbound email mode uses format, template, options, and includeAttachments.
  • Scheduled mode uses schedule.
  • Do not send mailbox-only fields together with a non-null schedule object in the same request.
  • Set schedule: null in PATCH to switch a scheduled webhook back to mailbox mode.

Response body and response headers are the same as Create Webhook.

  • Use PUT when you want to replace the full document.
  • Use PATCH when you want to update only specific fields.
  • headers, options, and template replace the full value when provided.
StatusMeaning
200Webhook updated
400Invalid URL, invalid field combination, or malformed request
401Invalid token
402Insufficient credits
404Webhook not found
500Internal server error