Webhooks

Update a webhook

PUT
Update a webhook

Path parameters

webhook_idstringRequired

Request

This endpoint expects an object.
url
stringOptional
The url to send the webhook to
headers
list of objectsOptional
Optional headers to send with the webhook
active
booleanOptional
Whether the webhook is active
secret
stringOptional
The secret to use to sign the webhook payload.

Response

This endpoint returns an object
result
object
PUT
1curl -X PUT https://api.propexo.com/v1/webhooks/webhook_id \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200Updated
1{
2 "result": {
3 "id": "clwktsp9v000008l31iv218hn",
4 "created_at": "2024-03-21T15:38:08.337Z",
5 "updated_at": "2024-03-22T10:59:45.119Z",
6 "url": "url",
7 "active": true,
8 "secret": "secret",
9 "system": "PRODUCTION",
10 "headers": [
11 {
12 "header": "header",
13 "value": "value"
14 }
15 ],
16 "triggers": [
17 {
18 "id": "id",
19 "trigger": "trigger"
20 }
21 ]
22 }
23}