PUT/v1/webhook-endpoint
Set the webhook endpoint
Sets the environment's HTTPS endpoint url and noticeDays (0 to 30, 0 sends no renewal notice). The signing secret appears only when the endpoint is created or rotateSecret is set. Needs project:settings.
curl -X PUT 'https://api.entitler.co/v1/webhook-endpoint' \
-H "Authorization: Bearer $ENTITLER_KEY" \
-H "Content-Type: application/json" \
-d '{"noticeDays":1,"rotateSecret":true,"target":{"environmentId":"environmentId","projectId":"projectId","teamId":"teamId"},"url":"url"}'Credentials
Send any one of these:
- Bearer token
Request body
object
noticeDaysinteger (int64)at least 0; at most 4294967295
rotateSecretbooleantargetProductTargetenvironmentIdstringprojectIdstringteamIdstring
urlstring
Responses
200The SetWebhookEndpointResponse message.
SetWebhookEndpointResponse
endpointWebhookEndpointnoticeDaysinteger (int64)requiredat least 0; at most 4294967295
updatedAtintegerrequiredat least 0; at most 18446744073709552000
urlstringrequired
signingSecretstring
ErrorA refusal, with the HTTP status of its gRPC code.
Error
errorobjectrequiredcodestringrequiredparametersobjectrequiredEach value: string
reasonstringor nullrequired