---
title: "Duplicate an infra"
method: POST
path: "/infra/{infra_id}/clone"
tags: ["infra"]
---

# Duplicate an infra

`POST /infra/{infra_id}/clone`

## Request

- Base URL: `https://demo.osrd.fr/api`
- URL: `https://demo.osrd.fr/api/infra/{infra_id}/clone`
- Auth: none declared

## Path parameters

- `infra_id` integer, required

## Query parameters

- `name` string, required

## Response `200`

The new infra ID

## Other responses

- `404`: Infra ID not found

---

[API](https://skmtc.dev/openrailassociation/apis/osrd-editoast.md) - [All operations](https://skmtc.dev/openrailassociation/apis/osrd-editoast/llms.txt) - [OpenAPI document](https://skmtc.dev/openrailassociation/apis/osrd-editoast/revisions/7c72c5e1bc0e?raw)
