---
title: "Reorder Template Items"
method: POST
path: "/api/templates/{template_id}/items/reorder"
tags: ["templates"]
---

# Reorder Template Items

`POST /api/templates/{template_id}/items/reorder`

## Request

- Base URL: `https://api.flagpost.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flagpost.ai/api/templates/{template_id}/items/reorder`
- Auth: HTTP bearer

Reorder template items. Body: [{"id": "uuid", "sort_order": 1}, ...]

## Path parameters

- `template_id` string, uuid, required

## Request body

- ReorderItem[]
  - `id` string, uuid, required
  - `sort_order` integer, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/flagpost/apis/flagpost-api.md) - [All operations](https://skmtc.dev/flagpost/apis/flagpost-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flagpost/apis/flagpost-api/revisions/0308cef485ca?raw)
