webhooks

Rotate the URL secret for a minted package webhook and return a new opaque handle.

Rotate the URL secret for a minted package webhook and return a new opaque handle. The previous URL stays active for 24 hours, or until the first accepted delivery arrives on the new URL. Register the new URL with webhookUrlApply — the credential is never returned.

Org permission: package:write.

post/v1/webhooks/{webhookName}/url/rotate

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/webhooks/{webhookName}/url/rotate
  • Auth: HTTP bearer

Path parameters

webhookNamestring required

Request body

packageIdstring

Saved-package UUID. Use when the scoped name is not known, or for a stable ref.

kodyIdstring

Package name (@owner/leaf or the name leaf). Prefer this when you know the name.

endpointIdstring

Minted endpoint to rotate. Required when several URLs share the webhook name.

Response

Success.

Changes

No recorded changes to this operation across all 1 revision of this API.