Webhooks

Update a webhook

PUT
https://api.propexo.com/v1/webhooks/:webhook_id
Update a webhook

Path parameters

webhook_id
string

Request

This endpoint expects an object.
url
optional string
The url to send the webhook to
headers
optional list of objects
Optional headers to send with the webhook
active
optional boolean
Whether the webhook is active
secret
optional string
The secret to use to sign the webhook payload.

Response

This endpoint return an object.
result
object
PUT
/v1/webhooks/:webhook_id
curl -X PUT https://api.propexo.com/v1/webhooks/webhook_id \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"result": {
"id": "id",
"created_at": "created_at",
"updated_at": "updated_at",
"url": "url",
"active": true,
"secret": "secret",
"system": "PRODUCTION",
"headers": [
{
"header": "header",
"value": "value"
}
],
"triggers": [
{
"id": "id",
"trigger": "trigger"
}
]
}
}