---
title: "Sync repository"
method: POST
path: "/repositories/{id}/sync"
tags: ["repositories"]
---

# Sync repository

`POST /repositories/{id}/sync`

Trigger a sync (git fetch + branch scan + commit indexing) for a repository

## Path parameters

- `id` integer, required

## Response `202`

Accepted

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

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