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.
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/models/{modelId}/git/sync
- AuthHTTP bearer
Path parameters
The unique identifier of the shared model, or of a shared extension model. See the endpoint description for which repository is synced.
Request body
Example request
{
"commitMessage": "Updated model configuration"
}Response
Sync operation completed successfully
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.