webhook_endpoints
Update a webhook endpoint
Changed onThis endpoint is used to update an existing webhook endpoint.
put/webhook_endpoints/{lago_id}
Request
- Base URLhttps://api.getlago.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- breaking
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info