---
title: "Creates an empty infra"
method: POST
path: "/infra"
tags: ["infra"]
---

# Creates an empty infra

`POST /infra`

The infra may be edited by batch later via the `POST /infra/ID` or `POST /infra/ID/railjson` endpoints.

## Request body

- object
  - `name` string, required — The name to give to the new infra

## Response `201`

The created infra

- Infra
  - `created` string, date-time, required
  - `generated_version` integer, nullable, required
  - `id` integer, required
  - `locked` boolean, required
  - `modified` string, date-time, required
  - `name` string, required
  - `railjson_version` string, required
  - `version` integer, required

---

[API](https://skmtc.net/openrailassociation/apis/osrd-editoast.md) · [All operations](https://skmtc.net/openrailassociation/apis/osrd-editoast/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/versions/1840dbbd64ac/schema)
