v4

latestOpenAPI 3.1.02026-08-01207318738.7 KB
Models

Migrate model

post/api/v1/models/{modelId}/migrate

Path parameters

modelIdstring uuid required

Model UUID

Example:123e4567-e89b-12d3-a456-426614174000

Model UUID

Request body

branchNamestring

Branch name for the target model

commitMessagestring

Commit message for git sync

deleteViewsAndTopicsMissingFromSourceboolean

When true (default), views and topics in the target model that are missing from the migrated source are deleted (the source is treated as the complete model). When false, they are kept (inherited) instead — useful when the source git ref may be missing objects that exist in omni but not in git, e.g. a newly synced schema.

gitRefstring

Git reference

targetModelIdstring uuid required

Target model ID to migrate to

Response

Migration completed successfully

successboolean required

Whether the operation was successful

Example response

{
  "success": true
}