---
title: "Mirror sync"
method: POST
path: "/repos/{owner}/{repo}/mirror-sync"
tags: ["Repositories"]
---

# Mirror sync

`POST /repos/{owner}/{repo}/mirror-sync`

Add a mirror repository to the sync queue. Returns 404 if the repository is not a mirror.

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `202`

Mirror sync has been queued.

## Other responses

- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/gogs/apis/gogs-api.md) · [All operations](https://skmtc.net/gogs/apis/gogs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogs/gogs-api/revisions/87e2da32266c/schema)
