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

# Retry kept batches

> Puts the named batches back in the queue, or every one, with their attempts reset; a batch that fails again is kept again.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/intake/failed/retry
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-2
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/intake/failed/retry:
    post:
      tags:
        - turns
      summary: Retry kept batches
      description: >-
        Puts kept batches back in the space's order for a worker to store, every
        one when no ids are given.

        A batch that fails again is kept aside again, with a new `row_failed`
        occurrence.


        **Authentication.** Console person token with the `integration` role (or
        admin), or a source key with the `admin` scope.
      operationId: retry_failed_intake_v1_intake_failed_retry_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FailedIntakeRetry'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FailedIntakeRetried'
          description: Successful Response
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    FailedIntakeRetry:
      additionalProperties: false
      properties:
        intake_ids:
          anyOf:
            - items:
                format: uuid
                type: string
              maxItems: 500
              type: array
            - type: 'null'
          description: The batches to retry; none retries every kept batch.
          title: Intake Ids
      title: FailedIntakeRetry
      type: object
    FailedIntakeRetried:
      additionalProperties: false
      properties:
        retried:
          description: Batches put back in the space's order for a worker to store.
          minimum: 0
          title: Retried
          type: integer
      required:
        - retried
      title: FailedIntakeRetried
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.