Rotate webhook secret
Changed onRotate 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.
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/models/{modelId}/git/rotate-webhook-secret
- AuthHTTP bearer
Path parameters
The unique identifier of the shared model, or a shared extension model in the Develop independently branch workflow.
Response
Webhook secret rotated successfully. The response includes the new webhook secret.
Example response
{
"authMethod": "ssh",
"baseBranch": "main",
"cloneUrl": "git@github.com:org/repo.git",
"commitSigningCommitterEmail": "omni-bot@example.com",
"commitSigningCommitterName": "Omni Bot",
"commitSigningPublicKey": "ssh-ed25519 AAAA...",
"gitServiceProvider": "github",
"githubAppInstallationId": "12345678",
"modelPath": "omni/my_model",
"publicKey": "ssh-ed25519 AAAA...",
"requirePullRequest": "users-only",
"webUrl": "https://github.com/org/repo",
"webhookUrl": "https://app.omni.co/api/webhooks/model/..."
}Changes
- info
endpoint added
- info