---
title: "POST /v1/admin/live-actions/scenarios/{scenarioId}/states/bulk-update-order"
method: POST
path: "/v1/admin/live-actions/scenarios/{scenarioId}/states/bulk-update-order"
tags: ["LiveActionsAdmin"]
---

# POST /v1/admin/live-actions/scenarios/{scenarioId}/states/bulk-update-order

`POST /v1/admin/live-actions/scenarios/{scenarioId}/states/bulk-update-order`

## Request

- Base URL: `https://api.miaai.chat` (the document declares no server; this is the origin it was published from)
- URL: `https://api.miaai.chat/v1/admin/live-actions/scenarios/{scenarioId}/states/bulk-update-order`
- Auth: HTTP bearer

## Path parameters

- `scenarioId` string, required

## Request body

- UpdateStatesOrderDto
  - `updates` StateOrderUpdateItem[], required: Full layout of the scenario states after the edit
    - `id` string, required: The ID of the live action state
    - `category` 'CLASSIC' | 'NSFW', required: Category the state belongs to after the update
    - `order` number, required: The new order position inside the category (0-indexed)

## Response `201`

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) - [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) - [OpenAPI document](https://skmtc.dev/miaai/apis/backend-template-api/revisions/2a8d88a5124f?raw)
