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

# Lock an infra

`POST /infra/{infra_id}/lock`

## Request

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

## Path parameters

- `infra_id` integer, required

## Response `204`

The infra was locked successfully

## Other responses

- `404`: The infra was 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)
