v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
Model Git configuration

Sync model with Git repository

Trigger a sync operation between the model and its configured Git repository.

This will pull the latest changes from the repository and apply them to the model.

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

Path parameters

modelIdstring uuid required

The unique identifier of the shared model.

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"
}