---
title: "Rearrange elements"
method: POST
path: "/api/v1/elements/sort"
tags: ["Elements"]
---

# Rearrange elements

`POST /api/v1/elements/sort`

This endpoint enables you to change the order of elements within a chosen section.

## Request body

- object
  - `token` string, required
  - `container_id` integer, required — The ID of the section in which the element will be rearranged
  - `container_type` string, required — The type of container in which the elements will be rearranged
  - `list` integer[], required — An array of element IDs that determines the new order in which the elements will be rearranged

## Response `200`

OK

## Other responses

- `401` — Error: Unauthorized
- `422` — Invalid request

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
