Skip to main content
PATCH
Update webhook endpoint
Required permission: environment.edit

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Headers

Idempotency-Key
string

A unique value, such as a UUID, that identifies this operation. When you send the same request again with the same key, Laravel Cloud returns the first successful response from the last 24 hours instead of performing the action again. See Idempotent requests.

Required string length: 1 - 255

Path Parameters

webhookEndpoint
string
required

The webhook endpoint identifier

Body

application/json
url
string

The HTTPS endpoint that receives the events. It must resolve to a public address.

Maximum string length: 2048
events
enum<string>[]

The deployment events to send.

Minimum array length: 1
Available options:
deployment.live,
deployment.succeeded,
deployment.failed,
deployment.post_deploy_failed
enabled
boolean

Whether Cloud sends events to the webhook.

Response

WebhookEndpointResource

data
WebhookEndpointResource · object
required
included
(JsonApiResource · object | WebhookEndpointResource · object | EnvironmentResource · object)[]