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

# Undo test execution stale holds

> Revert the mark-stale action recorded by the given holds. Every requested hold is reverted in one transaction — if any id is unknown or already undone, the whole call fails and nothing is reverted. A test execution only returns to fresh once every active hold referencing it has been undone; rows still held by another active hold are left untouched and excluded from reverted_count.



## OpenAPI

````yaml /openapi/fleet-manager-openapi.yaml post /api/v1/burn-in/test-execution-stale-holds/undo/
openapi: 3.0.3
info:
  title: Fleet Manager API
  version: 1.0.0
  description: API for the Nscale Fleet Manager
servers: []
security: []
paths:
  /api/v1/burn-in/test-execution-stale-holds/undo/:
    post:
      tags:
        - Burn-in
      summary: Undo test execution stale holds
      description: >-
        Revert the mark-stale action recorded by the given holds. Every
        requested hold is reverted in one transaction — if any id is unknown or
        already undone, the whole call fails and nothing is reverted. A test
        execution only returns to fresh once every active hold referencing it
        has been undone; rows still held by another active hold are left
        untouched and excluded from reverted_count.
      operationId: api_v1_burn_in_test_execution_stale_holds_undo_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestExecutionStaleHoldUndoRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/TestExecutionStaleHoldUndoRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TestExecutionStaleHoldUndoRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestExecutionStaleHoldUndoResponse'
          description: ''
        '400':
          description: Returned when a requested hold has already been undone.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication credentials were not provided or are invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: You do not have permission to perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Returned when a requested hold id does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - oauth2:
            - test-execution-stale-hold:undo
        - cookieAuth: []
components:
  schemas:
    TestExecutionStaleHoldUndoRequest:
      type: object
      description: Request serializer for the undo action — the holds to revert.
      properties:
        stale_hold_ids:
          type: array
          items:
            type: string
            format: uuid
          description: IDs of the stale holds to revert. All are reverted atomically.
          minItems: 1
      required:
        - stale_hold_ids
    TestExecutionStaleHoldUndoResponse:
      type: object
      description: Response serializer for the undo action.
      properties:
        reverted_count:
          type: integer
          description: >-
            Number of test executions actually reverted to fresh across all
            holds.
        total_marked:
          type: integer
          description: >-
            Total test executions the reverted holds originally marked stale.
            May exceed reverted_count if some are still held stale by another
            active hold.
      required:
        - reverted_count
        - total_marked
    ErrorResponse:
      type: object
      description: >-
        Uniform error body for every 4xx/5xx response. `detail` is a
        human-readable message, always present, safe to display to end users.
        `code` is the machine-readable identifier. `field_errors` lists
        per-input-field validation messages and is empty for non-field errors
        (auth, permission, not-found, conflict, server).
      required:
        - detail
        - code
        - field_errors
      properties:
        detail:
          type: string
        code:
          $ref: '#/components/schemas/ErrorCodeEnum'
        field_errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
    ErrorCodeEnum:
      type: string
      description: >-
        Stable machine-readable error identifier. New members may be added
        within this API version; clients must tolerate unknown values.
      enum:
        - error
        - invalid
        - parse_error
        - authentication_failed
        - not_authenticated
        - permission_denied
        - not_found
        - method_not_allowed
        - not_acceptable
        - unsupported_media_type
        - conflict
        - enrollment_infrastructure_reference_pending
        - enrollment_infrastructure_reference_changed
        - unprocessable_entity
        - throttled
        - service_unavailable
    FieldError:
      type: object
      description: One input field's validation messages.
      required:
        - field
        - messages
      properties:
        field:
          type: string
          description: >-
            Dotted path to the offending input field, or to the collection row
            when the whole row is invalid (e.g. `filters.end_date`,
            `memberships.0.role`, `memberships.0`).
        messages:
          type: array
          minItems: 1
          items:
            type: string
  securitySchemes:
    oauth2:
      type: oauth2
      flows: {}
    cookieAuth:
      type: apiKey
      in: cookie
      name: sessionid

````

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