---
title: "Sync model with git"
method: POST
path: "/api/v1/models/{modelId}/git/sync"
tags: ["Models"]
---

# Sync model with git

`POST /api/v1/models/{modelId}/git/sync`

## Path parameters

- `modelId` string, uuid, required — Model UUID

## Request body

- ModelsGitSyncBody
  - `commitMessage` string — Optional commit message for the git sync operation

## Response `200`

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

- ModelsGitSyncResponse
  - `didSync` boolean, required — Whether a sync operation was performed
  - `gitSha` string, nullable, required — The git SHA after the sync operation
  - `inSync` boolean, required — Whether the model is currently in sync with git
  - `message` string, required — Human-readable message about the sync status

## Other responses

- `401` — Authentication required
- `403` — Permission denied or git not configured
- `404` — Model not found

---

[API](https://skmtc.net/omniapp/apis/omni-api.md) · [All operations](https://skmtc.net/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omniapp/omni-api/versions/de7cac8b5983/schema)
