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

# Retry a failed pending state save

> Requeue a failed pending save and apply its records now; answer its status after that.

``applied`` when the save landed whole and is gone; ``calls`` or ``running`` while its calls
are queued or running; ``failed`` (with ``last_error``) when it failed again.



## OpenAPI

````yaml /openapi.json post /api/state-pending-saves/{id}/retry
openapi: 3.1.0
info:
  description: >-
    The operator HTTP surface served under /api/*. The platform's core routes.
    Plugin routes are published by each plugin.
  title: tai42-skeleton API
  version: 23.0.0
servers: []
security: []
paths:
  /api/state-pending-saves/{id}/retry:
    post:
      tags:
        - states
      summary: Retry a failed pending state save
      description: >-
        Requeue a failed pending save and apply its records now; answer its
        status after that.


        ``applied`` when the save landed whole and is gone; ``calls`` or
        ``running`` while its calls

        are queued or running; ``failed`` (with ``last_error``) when it failed
        again.
      operationId: post_api_state_pending_saves_id_retry
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/StatePendingSaveRetried'
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Conflict with the current resource state.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Request failed validation.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    StatePendingSaveRetried:
      description: >-
        A retried pending save's state after its records phase.


        ``applied`` — it landed whole and is gone; ``pending`` — it waits behind
        an older save or a

        contended subject; ``calls`` / ``running`` — its records applied and its
        calls are queued or

        running; ``failed`` — it failed again (``last_error`` says why).
      properties:
        id:
          title: Id
          type: string
        last_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Error
        status:
          enum:
            - applied
            - pending
            - calls
            - running
            - failed
          title: Status
          type: string
      required:
        - id
        - status
        - last_error
      title: StatePendingSaveRetried
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````

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