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

Request

  • Base URL
    https://omniapp.co (the document declares no server; this is the origin it was published from)
  • URL
    https://omniapp.co/api/v1/models/{modelId}/migrate
  • Auth
    HTTP bearer

Path parameters

modelIdstring uuid required

Model UUID

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

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 required

Git reference (required)

targetModelIdstring uuid required

Target model ID to migrate to

Response

Migration completed successfully

successboolean required

Whether the operation was successful

Example response

{
  "success": true
}

Changes

    • breaking

      request body became required

    • breaking

      the request property became required

    • breaking

      the request property's minLength was increased from 0 to 1