---
title: "POST /infra/{infra_id}/match_operational_points"
method: POST
path: "/infra/{infra_id}/match_operational_points"
tags: ["infra"]
---

# POST /infra/{infra_id}/match_operational_points

`POST /infra/{infra_id}/match_operational_points`

## Request

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

## Path parameters

- `infra_id` integer, required

## Request body

- object
  - `operational_point_references` OperationalPointReference[], required
    - union
      - object
        - `operational_point` string, required: The object id of an operational point
        - `type` 'id', required
      - object
        - `country_code` string, required
        - `main_code` string, required: The operational point main code
        - `secondary_code` string, nullable: An optional secondary code to identify a more specific location
        - `type` 'domestic', required
      - object
        - `secondary_code` string, nullable: An optional secondary code to identify a more specific location
        - `type` 'uic', required
        - `uic` integer, required: The [UIC](https://en.wikipedia.org/wiki/List_of_UIC_country_codes) code of an operational point

## Response `200`

Take a list of operational point references and return for each of them the
operational point that it matches on a given infrastructure.

- object
  - `related_operational_points` RelatedOperationalPoint[], required
    - `country_code` string, required
    - `geo` GeoJsonPoint
      - `coordinates` number[], required
      - `type` 'Point', required
    - `id` string, required
    - `is_passenger_station` boolean, required
    - `main_code` string, required
    - `name` string, required
    - `parts` RelatedOperationalPointPart[], required
      - `extensions` OperationalPointPartExtension
        - `sncf` OperationalPointPartSncfExtension
          - `kp` string, required
      - `local_track_name` string, required
      - `position` number, double, required: Offset on the track section, in m
      - `track` string, required
      - `geo` GeoJsonPoint
        - `coordinates` number[], required
        - `type` 'Point', required
    - `plc` string, nullable
    - `secondary_code` string
    - `secondary_name` string, nullable
    - `uic` integer, nullable
    - `weight` integer, nullable

## Changes

- **2026-08-03** `1840dbbd64ac`: 1 breaking, 1 info
  - removed `subschema #2: OperationalPointReferenceTrigram` from the `operational_point_references/items/` request property `oneOf` list
  - added `subschema #2: OperationalPointReferenceDomestic` to the `operational_point_references/items/` request property `oneOf` list
- **2026-08-03** `dff80f0a6343`: 1 breaking, 1 info
  - removed `subschema #2: OperationalPointReferenceDomestic` from the `operational_point_references/items/` request property `oneOf` list
  - added `subschema #2: OperationalPointReferenceTrigram` to the `operational_point_references/items/` request property `oneOf` list
- **2026-07-31** `f50835ffc9de`: 1 breaking, 1 info
  - removed `subschema #2: OperationalPointReferenceTrigram` from the `operational_point_references/items/` request property `oneOf` list
  - added `subschema #2: OperationalPointReferenceDomestic` to the `operational_point_references/items/` request property `oneOf` list
- **2026-07-29** `62dbae65a593`: 1 breaking, 1 info
  - removed `subschema #2: OperationalPointReferenceDomestic` from the `operational_point_references/items/` request property `oneOf` list
  - added `subschema #2: OperationalPointReferenceTrigram` to the `operational_point_references/items/` request property `oneOf` list
- …earlier changes not shown

[Operation history](https://skmtc.dev/openrailassociation/apis/osrd-editoast/changes/infra/:infra_id/match_operational_points/post.md)

---

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