Create or update a pull request for a model branch
This endpoint requires Modeler or Connection Admin permissions.
Push a branch’s model contents to Git and create or update a pull request. This mirrors the Create Pull Request / Update Pull Request buttons in Omni allowing API consumers and AI agents to drive the pull request workflow programmatically.
By default, the endpoint automatically detects whether the Git branch exists. If a branch doesn’t exist, a successful request will create a new Git branch and open a pull request. If a branch does exist, a commit will be added to the branch.
The allow_branch_exists and require_branch_exists parameters constrain this behavior:
- Create or update mode (default) - Auto-detects and handles both scenarios
- Create-only mode (
allow_branch_exists: false) - Fails if the Git branch already exists - Update-only mode (
require_branch_exists: true) - Fails if the Git branch doesn’t exist
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
Body
Response
Commit operation completed successfully

