Updates the git configuration for a shared model. Oly provided fields will be updated.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
The unique identifier of the shared model.
The SSH URL of the git repository.
"[email protected]:org/repo.git"
The target branch for Omni pull requests.
"main"
If true, all pull requests will create a branch in Omni, even those created outside of the tool.
false
If true, the shared model is read-only and can only be updated by merging pull requests to the baseBranch.
false
The git provider type. Use auto for automatic detection based on the SSH URL.
auto - Automatically detect the providergithub - GitHubgitlab - GitLabazure_devops - Azure DevOpsbitbucket - Bitbucketauto, github, gitlab, azure_devops, bitbucket "github"
Path to model files within the repository.
"omni/blobs_r_us"
Controls when pull requests are required for changes:
always - Pull requests are required for all changesusers-only - Pull requests are required only for user-initiated changesnever - Pull requests are never requiredalways, users-only, never "users-only"
Custom web URL override for the git repository.
"https://github.com/org/repo"
Git configuration updated successfully
The target branch for Omni pull requests.
"main"
If true, all pull requests will create a branch in Omni, even those created outside of the tool.
false
If true, the shared model is read-only and can only be updated by merging pull requests to the base branch.
false
The git provider type.
github - GitHubgitlab - GitLabazure_devops - Azure DevOpsbitbucket - Bitbucketgithub, gitlab, azure_devops, bitbucket "github"
Path to model files in the repository.
"omni/blobs_r_us"
SSH public key for repository access (deploy key).
"ssh-ed25519 AAAA..."
Controls when pull requests are required for changes:
always - Required for all changesusers-only - Required only for user-initiated changesnever - Never requiredalways, users-only, never "users-only"
SSH URL of the git repository.
"[email protected]:org/repo.git"
Custom web URL for the git repository, or null if not set.
"https://github.com/org/repo"
Webhook secret for signature verification. Only included if requested via ?include=webhookSecret.
Webhook URL to configure in your git provider.
"https://app.omni.co/api/webhooks/model/..."