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.
Headers
Section titled “Headers”| Header | Description |
|---|---|
x-token | Your API token |
Content-Type | Must be application/json |
Request
Section titled “Request”Replace With PUT
Section titled “Replace With PUT”Use PUT when you want to send the full new configuration.
Inbound Email Webhook
Section titled “Inbound Email Webhook”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}Scheduled Webhook
Section titled “Scheduled Webhook”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 }}Patch With PATCH
Section titled “Patch With PATCH”Use PATCH when you want to update only part of the configuration.
Patch semantics
Section titled “Patch semantics”| Field | Behavior |
|---|---|
url | Replaced when provided |
headers | Replaces the full headers object. Use {} to clear it. |
format | Mailbox-only field. Replaced when provided. |
template | Mailbox-only field. Replaces the template. Use null to remove it. |
options | Mailbox-only field. Replaces the full options object. Use {} to clear it. |
includeAttachments | Mailbox-only field. Replaced when provided. |
schedule | Scheduled field. Updates only the provided schedule fields. Use null to remove scheduling entirely. |
Patch an inbound email webhook
Section titled “Patch an inbound email webhook”{ "headers": { "X-Source": "support-inbox" }, "includeAttachments": false}Patch a scheduled webhook
Section titled “Patch a scheduled webhook”{ "schedule": { "active": false }}Mode Rules
Section titled “Mode Rules”- Inbound email mode uses
format,template,options, andincludeAttachments. - Scheduled mode uses
schedule. - Do not send mailbox-only fields together with a non-null
scheduleobject in the same request. - Set
schedule: nullinPATCHto switch a scheduled webhook back to mailbox mode.
Response
Section titled “Response”Response body and response headers are the same as Create Webhook.
- Use
PUTwhen you want to replace the full document. - Use
PATCHwhen you want to update only specific fields. headers,options, andtemplatereplace the full value when provided.
Status Codes
Section titled “Status Codes”| Status | Meaning |
|---|---|
200 | Webhook updated |
400 | Invalid URL, invalid field combination, or malformed request |
401 | Invalid token |
402 | Insufficient credits |
404 | Webhook not found |
500 | Internal server error |