Models

Sync model with git

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

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}/git/sync
  • Auth
    HTTP bearer

Path parameters

modelIdstring uuid required

Model UUID

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

Request body

commitMessagestring

Optional commit message for the git sync operation

Example request

{
  "commitMessage": "Update model schema"
}

Response

Sync status and result (includes inSync=false for conflicts requiring manual resolution)

didSyncboolean required

Whether a sync operation was performed

gitShastring nullable required

The git SHA after the sync operation

inSyncboolean required

Whether the model is currently in sync with git

messagestring required

Human-readable message about the sync status

Changes

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