Skip to main content
POST
/
v1
/
models
/
{modelId}
/
git
/
sync
Sync model with git repository
curl --request POST \
  --url https://{instance}.omniapp.co/api/v1/models/{modelId}/git/sync \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "commitMessage": "Updated model configuration"
}
'
{
  "didSync": true,
  "gitSha": "abc123def456",
  "inSync": true,
  "message": "Model synced successfully"
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Path Parameters

modelId
string<uuid>
required

The unique identifier of the shared model.

Body

application/json
commitMessage
string

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

Example:

"Updated model configuration"

Response

Sync operation completed successfully

didSync
boolean

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

Example:

true

gitSha
string | null

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

Example:

"abc123def456"

inSync
boolean

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

Example:

true

message
string

Human-readable status message describing the sync result.

Example:

"Model synced successfully"