---
title: "Create a rolling stock livery"
method: POST
path: "/rolling_stock/{rolling_stock_id}/livery"
tags: ["rolling_stock", "rolling_stock_livery"]
---

# Create a rolling stock livery

`POST /rolling_stock/{rolling_stock_id}/livery`

## Path parameters

- `rolling_stock_id` integer, required

## Response `200`

The created rolling stock

- RollingStockLivery — Rolling Stock Livery A rolling stock can have several liveries, which are deleted on cascade if the rolling stock is removed. It can have several liveries, and each livery can have one or several separated images and one compound image (created by aggregating the separated images together). A livery has a compound_image_id field which refers to a document. The separated images of the livery also have a image_id field which refers to a document. /!\ Its compound image is not deleted by cascade if the livery is removed.
  - `compound_image_id` integer, nullable
  - `id` integer, required
  - `name` string, required
  - `rolling_stock_id` integer, required

## Other responses

- `404` — The requested rolling stock was 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)
