> ## Documentation Index
> Fetch the complete documentation index at: https://docs.herodotus.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Retry a failed task

> Resets a failed task and re-queues it for processing. Only tasks in failed or errored states can be retried. This endpoint does not require authentication.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json post /tasks/{uuid}/retry
openapi: 3.1.0
info:
  title: Herodotus Data Processor Server API
  description: API documentation for the Herodotus Data Processor Server
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://staging.hdp.api.herodotus.cloud
    description: Staging API endpoint
security: []
tags:
  - name: tasks
    description: Task management endpoints
  - name: health
    description: Health check endpoints
  - name: modules
    description: Module registry endpoints
paths:
  /tasks/{uuid}/retry:
    post:
      tags:
        - tasks
      summary: Retry a failed task
      description: >-
        Resets a failed task and re-queues it for processing. Only tasks in
        failed or errored states can be retried. This endpoint does not require
        authentication.
      operationId: retryTask
      parameters:
        - name: uuid
          in: path
          description: The unique identifier (UUID) of the task to retry
          required: true
          schema:
            type: string
      responses:
        '202':
          description: Task re-queued successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreatedResponse'
        '400':
          description: Task cannot be retried (not in a failed state)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Task not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TaskCreatedResponse:
      type: object
      required:
        - status
        - message
        - uuid
      properties:
        message:
          type: string
        status:
          type: string
        uuid:
          type: string
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        details:
          type:
            - string
            - 'null'
        error:
          type: string
        message:
          type:
            - string
            - 'null'
        taskId:
          type:
            - string
            - 'null'

````