---
title: "Update rolling_stock locked field"
method: PATCH
path: "/rolling_stock/{rolling_stock_id}/locked"
tags: ["rolling_stock"]
---

# Update rolling_stock locked field

`PATCH /rolling_stock/{rolling_stock_id}/locked`

## Request

- Base URL: `https://demo.osrd.fr/api`
- URL: `https://demo.osrd.fr/api/rolling_stock/{rolling_stock_id}/locked`
- Auth: none declared

## Path parameters

- `rolling_stock_id` integer, required

## Request body

- RollingStockLockedUpdateForm
  - `locked` boolean, required: New locked value

## Response `204`

No content when successful

---

[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)
