v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBModel Git configuration
Create Git configuration
Create a new Git configuration for a shared model.
post/v1/models/{modelId}/git
Path parameters
modelIdstring uuid required
The unique identifier of the shared model.
Request body
Example request
{
"authMethod": "ssh",
"cloneUrl": "git@github.com:org/repo.git",
"sshUrl": "git@github.com:org/repo.git",
"baseBranch": "main",
"gitServiceProvider": "github",
"modelPath": "omni/blobs_r_us",
"requirePullRequest": "users-only",
"webUrl": "https://github.com/org/repo",
"deployPrivateKey": "-----BEGIN OPENSSH PRIVATE KEY-----\n...",
"deployKeyPassphrase": "my-secure-passphrase"
}Response
Git configuration created successfully
Example response
{
"authMethod": "ssh",
"cloneUrl": "git@github.com:org/repo.git",
"baseBranch": "main",
"gitServiceProvider": "github",
"modelPath": "omni/blobs_r_us",
"requirePullRequest": "users-only",
"sshUrl": "git@github.com:org/repo.git",
"webUrl": "https://github.com/org/repo",
"webhookUrl": "https://app.omni.co/api/webhooks/model/..."
}