---
title: "Reorder Blocks"
method: PUT
path: "/exercise-sessions/{session_id}/exercises/{exercise_id}/blocks/reorder"
tags: ["exercise_sessions"]
---

# Reorder Blocks

`PUT /exercise-sessions/{session_id}/exercises/{exercise_id}/blocks/reorder`

## Request

- Base URL: `https://api.excellence-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.excellence-ai.com/exercise-sessions/{session_id}/exercises/{exercise_id}/blocks/reorder`
- Auth: OAuth 2 (password, token URL `api/login`)

Reorder blocks by updating positions

## Path parameters

- `session_id` string, required
- `exercise_id` string, required

## Request body

- ReorderRequest
  - `block_ids` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) - [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) - [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/379e4a57dee8?raw)
