---
updatedAt: 2026-09-25T18:34:03.000Z
agentTools:
  projectIndex: https://docs.centaurlabs.com/llms.txt
---

# Reorder the answers for a task

Reorders the answer classes for a task by providing the desired order of answer IDs.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Ingest API",
    "description": "Public API for importing data and managing labeling tasks, cases, projects, and assets.",
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://api.centaurlabs.com"
    }
  ],
  "paths": {
    "/labelClasses/public/v1/reorder": {
      "put": {
        "tags": [
          "Add and Manage Tasks"
        ],
        "summary": "Reorder the answers for a task",
        "description": "Reorders the answer classes for a task by providing the desired order of answer IDs.",
        "operationId": "handler_reorder_answers_labelClasses_public_v1_reorder_put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderAnswersBody",
                "examples": [
                  {
                    "task_id": 456,
                    "new_answers_ids_order": [
                      0,
                      1,
                      2
                    ]
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "title": "Response Handler Reorder Answers Labelclasses Public V1 Reorder Put"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          },
          {
            "BearerToken": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ReorderAnswersBody": {
        "properties": {
          "task_id": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "title": "Task Id",
            "description": "Task ID"
          },
          "new_answers_ids_order": {
            "items": {
              "type": "integer",
              "minimum": 0
            },
            "type": "array",
            "minItems": 1,
            "title": "New Answers Ids Order",
            "description": "The new order of the answer choices IDs"
          }
        },
        "type": "object",
        "required": [
          "task_id",
          "new_answers_ids_order"
        ],
        "title": "ReorderAnswersBody"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "description": "Your Centaur API key",
        "in": "header",
        "name": "X-API-KEY"
      },
      "BearerToken": {
        "type": "http",
        "description": "Bearer token obtained from authentication endpoint",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Add and Manage Tasks",
      "description": "Create and configure labeling tasks, including their answer classes, label class groups, and instructions."
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  }
}
```