Creates or updates (upserts) a webhook with a specified ID.
Webhook to create or update.
Event types that trigger the webhook. If empty, all event types trigger the webhook.
Webhook request body. If this value is null, the default payload for the specified event is used. Template placeholders are permitted.
Invalid placeholders render as empty strings. For example, Hello {{invalid.placeholder}}! is rendered as Hello !.
For more information, see Placeholders.
Filter that determines whether to send the webhook. This field requires a special format. Use , for multiple allowed values. Use ; for multiple fields.
For more information, see Using filters.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/webhooks/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/webhooks/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/webhooks/{id}
- SecretApiKey
- JWT
- ApplicationJWT
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/webhooks/{id}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"eventsFilter": [],
"status": "active",
"method": "GET",
"url": "http://example.com",
"headers": [
{
"name": "string",
"status": "active",
"value": "value1"
}
],
"credentialHash": "string",
"body": "string",
"filter": "string"
}'Webhook updated.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Event types that trigger the webhook. If empty, all event types trigger the webhook.
Webhook request body. If this value is null, the default payload for the specified event is used. Template placeholders are permitted.
Invalid placeholders render as empty strings. For example, Hello {{invalid.placeholder}}! is rendered as Hello !.
For more information, see Placeholders.
Filter that determines whether to send the webhook. This field requires a special format. Use , for multiple allowed values. Use ; for multiple fields.
For more information, see Using filters.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
{ "id": "hook_0YVBG8S0K0DG59J6S3RMN9K452", "eventsFilter": [], "status": "active", "method": "GET", "url": "http://example.com", "headers": [ { … } ], "credentialHash": "string", "body": "string", "filter": "string", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }