---
title: "Create macro nodes in batch"
method: POST
path: "/macro_nodes"
tags: ["scenarios"]
---

# Create macro nodes in batch

`POST /macro_nodes`

## Request body

- MacroNodeBatchForm
  - `macro_nodes` MacroNodeForm[], required
    - `full_name` string, nullable
    - `is_collapsed` boolean
    - `labels` string[], required
    - `path_item_key` string, required
    - `position_x` integer, required
    - `position_y` integer, required
    - `trigram` string, nullable
  - `scenario_id` integer, required

## Response `201`

Macro nodes created

- MacroNodeBatchResponse
  - `macro_nodes` MacroNodeResponse[], required
    - `full_name` string, nullable
    - `id` integer, required
    - `is_collapsed` boolean, required
    - `labels` string[], required
    - `path_item_key` string, required
    - `position_x` integer, required
    - `position_y` integer, required
    - `trigram` string, nullable

## Changes

> 77 revisions in range; 2 not diffed.

- **2026-08-11** `d4f882bf7ec5` — 1 breaking, 1 warning
  - removed the required property `macro_nodes/items/connection_time` from the response with the `201` status
  - removed the request property `macro_nodes/items/connection_time`
- **2026-08-03** `dff80f0a6343` — 1 breaking, 1 info
  - added the new required request property `macro_nodes/items/connection_time`
  - added the required property `macro_nodes/items/connection_time` to the response with the `201` status
- **2026-07-31** `32ca346a5add` — 1 breaking, 1 warning
  - removed the required property `macro_nodes/items/connection_time` from the response with the `201` status
  - removed the request property `macro_nodes/items/connection_time`

[Change history](https://skmtc.dev/openrailassociation/apis/osrd-editoast/changes/macro_nodes/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-service-production.skmtc.workers.dev/v1/apis/openrailassociation/osrd-editoast/revisions/e1fc96bc11fd/schema)
