Rotate webhook secret
This endpoint requires Modeler permissions or higher.
Rotate the pull request webhook signing secret for the Git configuration of a shared model, or a shared extension model in the Develop independently branch workflow, and return the updated Git configuration with the new secret. The previous secret stops validating webhook deliveries immediately.
If the git repository is shared across multiple models, the secret belongs to whichever model owns the shared configuration. Rotating the secret for any of the sharing models rotates the one shared secret for all of them.
This is the only endpoint that returns the new secret value. Call GET /v1/models/{modelId}/git?include=webhookSecret to retrieve it after the rotation, if needed.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
Response
Webhook secret rotated successfully. The response includes the new webhook secret.

