Creates a webhook

POST
/api/v2/webhooks

Create a new webhook.

Request

This endpoint expects an object.
urlstringRequired

The URL of the remote webhook

signbooleanRequired

If sign is false, the webhook does not include a signature header, and the secret can be omitted.

onbooleanRequired

Whether or not this webhook is enabled.

namestringOptional

A human-readable name for your webhook

secretstringOptional

If sign is true, and the secret attribute is omitted, LaunchDarkly automatically generates a secret for you.

statementslist of objectsOptional

Represents a Custom role policy, defining a resource kinds filter the webhook should respond to.

tagslist of stringsOptional

List of tags for this webhook

Response

Webhook response

_idstring

The ID of this webhook

urlstring

The URL to which LaunchDarkly sends an HTTP POST payload for this webhook

onboolean

Whether or not this webhook is enabled

tagslist of strings

List of tags for this webhook

namestringOptional

A human-readable name for this webhook

secretstringOptional

The secret for this webhook

statementslist of objectsOptional

Represents a Custom role policy, defining a resource kinds filter the webhook responds to.

_accessobjectOptional

Details on the allowed and denied actions for this webhook

Errors

Built with