---
title: "Reorder Annotation Templates"
method: POST
path: "/v2/projects/{project_id}/annotation/templates/reorder"
tags: ["annotation"]
---

# Reorder Annotation Templates

`POST /v2/projects/{project_id}/annotation/templates/reorder`

## Request

- Base URL: `https://api.galileo.ai`
- URL: `https://api.galileo.ai/v2/projects/{project_id}/annotation/templates/reorder`
- Auth: one of:
  - API key in header `Splunk-AO-API-Key`
  - API key in header `Galileo-API-Key`
  - OAuth 2
    - Password
    - Token URL: `https://api.galileo.ai/login`
  - HTTP basic

Reorder all annotation templates within a project.

Args:
    project_id: Project whose templates are being reordered, resolved from the URL.
    annotation_template_reorder: The full, new ordering of template IDs.
    ctx: Async request context.

Returns:
    A confirmation message.

Raises:
    GalileoServerException: 400 if the ordering omits or adds templates relative to the project's current set.

## Path parameters

- `project_id` string, uuid4, required

## Request body

- AnnotationTemplateReorder: Request to re-order the annotation templates of a project. - Expects a list of strings where each string is the ID of a template in the project in the order we want the templates to appear in. - Expects the list to be complete list of all template IDs.
  - `ordering` string[], required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

> 34 revisions in range; 2 not diffed.

- **2026-07-26** `05003e7835a2`: 1 info
  - the endpoint scheme security `ClassicAPIKeyHeader` was added to the API

[Operation history](https://skmtc.dev/galileo/apis/galileo-api-server/changes/v2/projects/:project_id/annotation/templates/reorder/post.md)

---

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