Model Git configuration
Create Git configuration
Create a new Git configuration for a shared model, or a shared extension model in the Develop independently branch workflow. A shared extension's Git configuration is its own, separate from its parent model's.
post/v1/models/{modelId}/git
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/models/{modelId}/git
- AuthHTTP bearer
Path parameters
modelIdstring uuid required
The unique identifier of the shared model, or a shared extension model in the Develop independently branch workflow.
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/..."
}Changes
No recorded changes to this operation across all 2 revisions of this API.