Copies a model from one Omni connection to another by reading the source model’s YAML at a specific git ref and writing it to the target model. Supports same-organization and cross-organization migrations.
This API:
gitRef (merged with the default branch).branchName is provided and the branch already exists on the target model, the API writes to that branch. If the branch doesn’t exist, one is created.To successfully migrate a model:
Requires an Organization API Key. Personal Access Tokens (PATs) are not supported for this endpoint.
Include in the Authorization header as: Bearer ORGANIZATION_API_KEY
The shared model ID to read YAML from.
Git reference (branch name, tag, or commit SHA) to read the source model YAML from.
"main"
The shared model ID to write the YAML to.
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Required if the target model has git enabled.. Branch name on the target model. If the branch doesn't exist, it will be created.
"migrate-from-prod"
Git commit message.
"Migrate model from production"
Model migrated successfully
Whether the migration completed successfully.
true