Model Git configuration

Sync model with Git repository

Trigger a sync between the model and its configured Git repository. Omni pulls the latest changes from the repository and, if the model has changes not yet in Git, pushes them in a commit using commitMessage.

The modelId can be a shared model or a shared extension model. For an extension that uses the Develop with the parent model branch workflow, the sync runs on the parent model and includes every extension in that workflow. For an extension that uses the Develop independently branch workflow and is linked to its own Git repository, the sync runs on the extension's repository.

post/v1/models/{modelId}/git/sync

Request

  • Base URL
    https://blobsrus.omniapp.co/api
  • URL
    https://blobsrus.omniapp.co/api/v1/models/{modelId}/git/sync
  • Auth
    HTTP bearer

Path parameters

modelIdstring uuid required

The unique identifier of the shared model, or of a shared extension model. See the endpoint description for which repository is synced.

Request body

commitMessagestring

Optional commit message to use when pushing changes to the repository.

Example request

{
  "commitMessage": "Updated model configuration"
}

Response

Sync operation completed successfully

didSyncboolean

Whether a sync was performed. false if the model was already in sync.

gitShastring nullable

The git SHA after the sync operation, or null if no sync was performed.

inSyncboolean

Whether the model is currently in sync with the git repository.

messagestring

Human-readable status message describing the sync result.

Example response

{
  "didSync": true,
  "gitSha": "abc123def456",
  "inSync": true,
  "message": "Model synced successfully"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.