Subscriptions

Rotate the signing secret of a webhook subscription

๐Ÿ”‘

Required OAuth scope: webhookSecrets:write.

Rotates the signing secret for the given webhook subscription. In addition to the new signature, the events will also be signed with the legacy secret for 24 hours.

post/api/v2/webhooks/subscriptions/{subscriptionId}/secrets/rotate

Request

  • Base URL
    https://app.360learning.com
  • URL
    https://app.360learning.com/api/v2/webhooks/subscriptions/{subscriptionId}/secrets/rotate
  • Auth
    OAuth 2
    Client credentials
    Token URL: /api/v2/oauth2/token

Path parameters

subscriptionIdstring ObjectId required
Example:507f1f77bcf86cd799439011

The unique ID of the webhook subscription.

Headers

360-api-version'v2.0' required

The version of the API.

Response

Returns the new signing secret of the webhook subscription.

secretstring required

The signing secret of the webhook subscription. You can use this secret to verify the authenticity of the received events.

Example response

{
  "secret": "password123"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.