Update Webhook
PUT
/webhooks/{id}This endpoint allows you to update an existing webhook by passing the id
as path parameter
:::tip[Note]
- The webhook used is to notify/update/delete an external service when an event has occurred.
- To trigger your webhook to send data, you can choose one event from the List Events endpoint.
:::
:::info[Information]
Read more on Webhooks here.
:::
:::caution[Alert]
• New subscriptions with the same URL will update events / restore old webhooks (if they exist).
• The added URL must accept PUT
requests.
• By default, all new webhooks are registered as version 2
. To use version 1
, specify it in your request parameters.
:::
Request
Webhook ID. Get a list of Webhooks IDs from [here]https://docs.salla.dev/api-5394135)
Webhook name. List of Webhook names can be found here.
Webhook registered URL. requiredif
no ID is passed.
Version of the webhook; either valued as 1
or 2
Operations, expressions and conditions to your webhook. For example, you may use =
,!=
,AND
,OR
etc in such a menner: payment_method = YOUR_PAYMENT_METHOD
or in combination company_id = 871291 OR price < 50
. That adds more capbility to filter the response based on conditions
Webhook headers
Any header key, which its value is sent in the post request to the webhook URL
The value sent to the webhook; for example: cf-ray: 669af54ecf55dfcb-FRA
in:signature,token
required_if:security_strategy,signature
{
"name": "Salla Update Customer Evensst",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"headers": [
{
"key": "Your Secret token key name",
"value": "Your Secret token value"
}
]
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Webhook ID
Webhook name
Webhook event
Webhook version
Webhook rule
Webhook url
Webhook type
{
"status": 200,
"success": true,
"data": {
"id": 773200552,
"name": "Salla Update Customer Evensst",
"event": "test",
"version": 2,
"rule": "payment_method = mada OR price < 50",
"url": "https://webhook.site/fake_url",
"headers": {
"Your Secret token key name": "Your Secret token value"
},
"type": "manual",
"security": {
"strategy": "",
"secret": null
}
}
}