---
title: "Bulk update scenario priorities"
method: POST
path: "/v1/mocks/{mock_id}/scenarios/reorder"
tags: ["mocks"]
---

# Bulk update scenario priorities

`POST /v1/mocks/{mock_id}/scenarios/reorder`

## Request

- The document declares no server URL.
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/oneloop-hq/apis/feather-api/docs/v1/mocks/:mock_id/scenarios/reorder/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `mock_id` string, uuid, required

## Request body

- ScenarioReorderRequest
  - `items` ScenarioReorderItem[], required
    - `id` string, uuid, required
    - `priority` integer, required

## Response `200`

Successful Response

- MockScenarioResponse[]
  - `id` string, uuid, required
  - `mock_id` string, uuid, required
  - `name` string, required
  - `priority` integer, required
  - `match_method` string, required
  - `match_path_pattern` string, nullable, required
  - `match_headers` object, required
  - `match_query` object, required
  - `match_body` object, required
  - `response_status` integer, required
  - `response_headers` object, required
  - `response_body` union, required
    - object
    - unknown[]
      - unknown
  - `delay_ms` integer, required
  - `is_enabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `404`: Resource not found
- `422`: Validation Error

## Changes

- **2026-08-12** `5a5597ebb2d6`: 6 info
  - added the optional property `retry_after` to the response with the `400` status
  - added the optional property `retry_after` to the response with the `401` status
  - added the optional property `retry_after` to the response with the `404` status
  - added the optional property `retryable` to the response with the `400` status
  - …2 more

[Operation history](https://skmtc.dev/oneloop-hq/apis/feather-api/changes/v1/mocks/:mock_id/scenarios/reorder/post.md)

---

[API](https://skmtc.dev/oneloop-hq/apis/feather-api.md) - [All operations](https://skmtc.dev/oneloop-hq/apis/feather-api/llms.txt) - [OpenAPI document](https://skmtc.dev/oneloop-hq/apis/feather-api/revisions/9cd7291d4228?raw)
