本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
id
as path parameterPUT
requests.2
. To use version 1
, specify it in your request parameters.webhooks.read_write
- Webhooks Read & WriteAuthorization: Bearer ********************
requiredif
no ID is passed.1
or 2
=
,!=
,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 conditionscf-ray: 669af54ecf55dfcb-FRA
{
"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"
}
]
}
curl --location --request PUT 'https://echo.apifox.com/anything/webhooks/773200552' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
]
}'
{
"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
}
}
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升