v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBModels
Update git configuration
Update git configuration for a model. Only provided fields are changed. For SSH auth, a bring-your-own deploy key can be set via deployPrivateKey (with deployKeyPassphrase for encrypted keys), enabling zero-downtime key rotation: authorize the matching public key with the git provider first, then set the key here.
patch/api/v1/models/{modelId}/git
Path parameters
modelIdstring uuid required
Model UUID
Example:123e4567-e89b-12d3-a456-426614174000
Model UUID
Request body
Example request
{
"authMethod": "ssh",
"baseBranch": "main",
"cloneUrl": "git@github.com:org/repo.git",
"commitSigningCommitterEmail": "omni-bot@example.com",
"commitSigningCommitterName": "Omni Bot",
"gitServiceProvider": "github",
"githubAppInstallationId": "12345678",
"modelPath": "my_model",
"requirePullRequest": "users-only",
"sshUrl": "git@github.com:org/repo.git",
"webUrl": "https://github.com/org/repo"
}Response
Git configuration updated
Example response
{
"authMethod": "ssh",
"baseBranch": "main",
"cloneUrl": "git@github.com:org/repo.git",
"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/..."
}