Developers

Search the docs

Search guides and headings.

Change a webhook endpoint

PUT/developer/v1/webhook-endpoint/{endpoint_id}/update/document
No scope needed

Changes the fields you send and leaves the others as they are. Send description as null to clear it. Send is_enabled: false to pause deliveries. The same rules as on create apply to url and events. An endpoint of another mode answers not_found.

Path parameters

  • endpoint_idstringrequired

    The ID of the webhook endpoint, such as whe-....

Request body

  • descriptionstringnullable

    The new description, or null to clear it.

    Max length 500

  • eventsarray of enum

    The new event types, replacing the old ones: at least one, no duplicates, never ping.

  • is_enabledboolean

    false to stop sending events to the endpoint, true to start again.

  • urlstring

    The new HTTPS address. The same rules as when the endpoint was created apply.

    Min length 1

Response 200

  • company_idstringrequired

    The ID of the company the endpoint belongs to.

  • created_atstring (date-time)required

    When the endpoint was created, in UTC.

  • descriptionstringrequirednullable

    What the endpoint is for, or null.

  • endpoint_idstringrequired

    The ID of the endpoint.

  • eventsarray of enumrequired

    The event types the endpoint receives.

  • is_enabledbooleanrequired

    Whether events are sent to the endpoint.

  • modeenumrequired

    test for the sandbox, prod for production.

    • test
    • prod
  • previous_secret_expires_atstring (date-time)requirednullable

    After a roll, when the old secret stops being valid, in UTC. null when there is no old secret to accept.

  • secret_last_fourstringrequired

    The last four characters of the signing secret, to tell secrets apart.

  • updated_atstring (date-time)required

    When the endpoint was last changed, in UTC.

  • urlstringrequired

    The HTTPS address events are sent to.

Errors

Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.

jsonError response
{
  "error": {
    "code": "not_found",
    "message": "The object does not exist.",
    "request_id": "req_0123456789abcdef0123456789abcdef"
  }
}
StatusCodeMeaning
401invalid_api_keyThe API key is missing or not valid.
403company_archivedThis company is archived.
403company_not_liveThe company must be live to use prod keys.
403company_suspendedThis company is suspended.
403scope_not_grantedThis API key does not have the scope to receive: order.created.
404not_foundThe requested resource was not found.
422validation_errorSend at least one field to change.
429rate_limitedToo many requests. Wait before calling again.
500internal_errorSomething went wrong on our side. Please try again later.
502upstream_errorA Nurish'd service could not complete the request.
503upstream_unavailableA Nurish'd service is unavailable. Please try again later.
504upstream_timeoutA Nurish'd service did not answer in time. Please try again.

All error codes and what to do about them