Rotate Webhook Secret

POST
/api/v1/webhooks/endpoints/{endpointId}/rotate-secret

Path Parameters

endpointId*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/webhooks/endpoints/string/rotate-secret"
{  "consecutiveFailures": 0,  "createdAt": "string",  "description": "string",  "events": [    "person.created"  ],  "id": "string",  "lastSuccessAt": "string",  "name": "string",  "projectId": "string",  "secret": "string",  "status": "active",  "url": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/WebhookEndpointNotFoundError",  "endpointId": "string"}
{  "_tag": "Api/WebhookServiceError",  "cause": "string"}