webhook_endpoints

Update a webhook endpoint

Changed on

This endpoint is used to update an existing webhook endpoint.

put/webhook_endpoints/{lago_id}

Request

Request body

Example request

{
  "webhook_endpoint": {
    "webhook_url": "https://foo.bar",
    "signature_algo": "hmac",
    "name": "EC2-production",
    "event_types": [
      "invoice.voided",
      "customer.created"
    ]
  }
}

Response

Webhook endpoint updated

Example response

{
  "webhook_endpoint": {
    "lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
    "lago_organization_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
    "webhook_url": "https://foo.bar",
    "signature_algo": "hmac",
    "name": "EC2-production",
    "event_types": [
      "invoice.voided",
      "customer.created"
    ],
    "created_at": "2022-04-29T08:59:51Z"
  }
}

Changes

    • breaking

      the request property became required

    • info

      the request property / became optional

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status