Referência da APIWebhooks
Issue a new signing secret; the previous one keeps signing during the grace period
Authorization
apiKey AuthorizationBearer <token>
In: header
Path Parameters
webhook_id*string
Match
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
grace_hours?integer
How long deliveries are also signed with the previous secret; default 24, 0 retires it at once
Range
0 <= value <= 168Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret" \ -H "Content-Type: application/json" \ -d '{}'{ "secret": "string", "previous_secret_expires_at": "2019-08-24T14:15:22Z"}
