Rotate an Event Destination webhook secret

POST
/v1/event-destinations/{destinationId}/rotate-secret

Rotate an Event Destination webhook secret.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

destinationId*string
Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/event-destinations/string/rotate-secret" \  -H "Content-Type: application/json" \  -d '{}'
{  "destinationId": "string",  "type": "string",  "topics": [    "string"  ],  "scope": {    "type": "organization"  },  "config": {    "property1": null,    "property2": null  },  "filter": {    "property1": null,    "property2": null  },  "enabled": true,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}
{  "error": {    "code": "validation_error",    "message": "string",    "meta": {      "property1": null,      "property2": null    }  }}