Create Webhook - Field Descriptions

The following page details each of the fields that can be used in the request and received in the response when using the Register New Webhook endpoint.

Request

The following table describes fields that can be included in the body of the request when registering a new webhook.

FieldDescriptionMin LengthMax LengthTypeMandatory
productIdThe product ID.0255NumericNo
eventsThe event code(s) associated with the webhook. See Webhook Event Codes for information on the available event codes.03ArrayNo
webhookStatusThe webhook status. By default, the status is active. If you want to set the status to inactive.08StringNo
configObject that contains the configuration information for the webhook. Must be included in the body.ObjectYes
urlURL of your webhook endpoint. This must be HTTPS.1255StringYes
customHeadersCustom headers to be passed along with the request. This is a lifecycle field that the you may want Thredd to always return as part of a webhook. You can have up to three name-value pairs.0500ObjectNo

Response

The following table describes fields that included in the response after successfully registering a new webhook.

FieldDescription
webhookIdThe unique identifier for the newly created webhook.
productIdThe product ID from the request.
eventsThe event codes for the webhook.
webhookStatusThe status of the webhook.
urlThe URL from the request.
customHeadersThe custom headers from the request.
createdTimeThe date and time the webhook was created in UTC format.