---
title: "Get the occupancy of a set of level crossings for a set of trains"
method: POST
path: "/level_crossing_occupancy"
tags: ["level_crossing"]
---

# Get the occupancy of a set of level crossings for a set of trains

`POST /level_crossing_occupancy`

## Request body

- object
  - `electrical_profile_set_id` integer, nullable
  - `infra_id` integer, required
  - `level_crossing_ids` Identifier[], required
  - `timetable_id` integer, required
  - `train_ids` integer[], required

## Response `200`

Occupancy periods of the given level crossings

- object

---

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