Merge a branch
Merges a model branch into the shared model.
For PR-required and git follower models, direct merges via API are rejected by default as they would bypass the intended git workflow. You can use theDocumentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
force_override_git_settings parameter to override this check when necessary, but git will not be synced to avoid force-pushing to main.
| Model Configuration | Default Behavior | With force_override_git_settings: true |
|---|---|---|
| No git | Merge succeeds, no git sync | N/A |
| Git enabled (no PR required) | Merge succeeds, syncs to git | N/A |
| Git + PR required | Rejected with 400 error | Merge succeeds, no git sync |
| Git + git follower | Rejected with 400 error | Merge succeeds, no git sync |
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The unique identifier of the model
The name of the branch to merge
Body
Delete the branch after merging
When enabled, publish branch-attached drafts when merging
Custom commit message for git sync. Defaults to "branch <name> merged via API"
"Merged revenue metrics branch via CI/CD pipeline"
Requires Connection Admin or Organization Admin permissions. Users with lesser permissions will receive a 403 Forbidden error when attempting to use this parameter.
Allow merge for PR-required or git-follower models. When enabled, the merge will succeed but git will not be synced to avoid force-pushing to main.
Response
Branch merged successfully