---
title: "Rename an infra"
method: PUT
path: "/infra/{infra_id}"
tags: ["infra"]
---

# Rename an infra

`PUT /infra/{infra_id}`

## Path parameters

- `infra_id` integer, required

## Request body

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

## Response `200`

The infra has been renamed

- 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

## Other responses

- `404` — Infra ID not found

---

[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/revisions/e1fc96bc11fd/schema)
