---
title: "Sort menu points by providing IDs with their new indices"
method: POST
path: "/api/stories/{simulationId}/menu-points/sort"
tags: ["MenuPoints"]
---

# Sort menu points by providing IDs with their new indices

`POST /api/stories/{simulationId}/menu-points/sort`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/stories/{simulationId}/menu-points/sort`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Path parameters

- `simulationId` string, uuid, required: A valid GUID

## Request body

- SortMenuPointsDto: DTO for sorting menu points
  - `menuPoints` MenuPointSortItem[], required
    - `id` string, uuid, required: A valid GUID
    - `index` integer, required

## Response `200`

OK

- MenuPointDto[]
  - `id` string, uuid, required: A valid GUID
  - `nodeId` string, uuid, required: A valid GUID
  - `label` string, required
  - `index` integer, required
  - `locked` boolean, required

## Other responses

- `404`: Not Found
- `422`: Unprocessable Content

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
