Creates a webhook.
Webhook resource.
method required | string Enum: "GET" "POST" "PUT" "PATCH" "DELETE" |
url required | string <uri> URL that triggers when a specified event occurs. |
credentialHash required | string Hash from credentials to use for authentication by the specified URL. |
eventsFilter | Array of strings (GlobalWebhookEventType) Default: [] Array of system event types. |
status | string (OnOff) Default: "active" Enum: "active" "inactive" |
Array of objects (WebhookHeader) Webhook headers. | |
body | string or null Webhook request body.
If this value is Invalid placeholders render as an empty strings.
For example, For more information, see Placeholders. |
filter | string Filter that determines whether to send the webhook.
This field requires a special format.
Use For more information, see Using filters. |
Webhook created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
method required | string Enum: "GET" "POST" "PUT" "PATCH" "DELETE" |
url required | string <uri> URL that triggers when a specified event occurs. |
credentialHash required | string Hash from credentials to use for authentication by the specified URL. |
id | string <= 50 characters ID of the webhook. |
eventsFilter | Array of strings (GlobalWebhookEventType) Default: [] Array of system event types. |
status | string (OnOff) Default: "active" Enum: "active" "inactive" |
Array of objects (WebhookHeader) Webhook headers. | |
body | string or null Webhook request body.
If this value is Invalid placeholders render as an empty strings.
For example, For more information, see Placeholders. |
filter | string Filter that determines whether to send the webhook.
This field requires a special format.
Use For more information, see Using filters. |
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created. |
updatedTime | string <date-time> Date and time which updates automatically when the resource is updated. |
Array of objects (SelfLink) Related links. | |
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "eventsFilter": [ ],
- "status": "active",
- "method": "GET",
- "headers": [
- {
- "name": "string",
- "status": "active",
- "value": "value1"
}
], - "credentialHash": "string",
- "body": "string",
- "filter": "string"
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "eventsFilter": [ ],
- "status": "active",
- "method": "GET",
- "headers": [
- {
- "name": "string",
- "status": "active",
- "value": "value1"
}
], - "credentialHash": "string",
- "body": "string",
- "filter": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}