Skip to content
QaydTech Beta launch

Webhook addresses

Update a webhook address

patch https://your-business.qaydtech.com/api/v1/webhooks/{id}

Changes only what is sent. is_active: true resumes an address paused after failing, its failures forgotten. The address and its events are changed only by a user who may read every event it is told of.

Permission: webhooks.write Supports Idempotency-Key to prevent duplicates.

Request

Path parameters

  • id integer required

    The record’s number.

    Example: 42

Headers

  • Authorization string required

    Bearer followed by the API key.

    Example: Bearer qayd_…

  • Accept-Language string optional

    en for English error messages. Arabic by default.

    Example: en

  • Content-Type string required

    application/json with every request that has a body.

    Example: application/json

  • Idempotency-Key string optional

    A unique value so a request sent again creates nothing twice.

    Example: order-10045

Request body application/json

  • url string optional

    An https address on port 443, out on the internet; up to 500 characters.

  • description string optional

    Description, up to 500 characters.

  • events array[] optional

    The events it is told of: see the webhooks guide.

  • is_active boolean optional

    false to stop it (a customer, an item, a webhook address); true to resume it.

    Example: true

Responses

  • 200 OK
  • 403 Not allowed
  • Errors · 401 · 403 · 429