---
title: "POST /api/repo/{namespace}/{repository}/fork"
method: POST
path: "/api/repo/{namespace}/{repository}/fork"
tags: ["repository"]
---

# POST /api/repo/{namespace}/{repository}/fork

`POST /api/repo/{namespace}/{repository}/fork`

## Path parameters

- `namespace` string, required
- `repository` string, required

## Request body

- ForkJsonRequest — unresolved $ref

## Response `200`

Fork created successfully

- CreateJsonResponse
  - `id` string, uuid, required — Internal ID of the newly created repository
  - `url` string, required — Full URL to the repository

## Other responses

- `400` — Cannot fork into this namespace
- `401` — Authentication required
- `404` — Repository not found or access denied
- `409` — Repository name already in use in this namespace

---

[API](https://skmtc.dev/mari/apis/gitarena.md) · [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mari/gitarena/revisions/b3640d5600df/schema)
