> ## 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.

# Mark impairment device release failed

> Internal API for Radar to submit and inspect node/pod impairment events.



## OpenAPI

````yaml /openapi/fleet-manager-openapi.yaml post /api/v1/operations/impairment-events/{id}/devices/{device_id}/release-failed/
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/operations/impairment-events/{id}/devices/{device_id}/release-failed/:
    post:
      tags:
        - Operations
      summary: Mark impairment device release failed
      description: Internal API for Radar to submit and inspect node/pod impairment events.
      operationId: api_v1_operations_impairment_events_devices_release_failed_create
      parameters:
        - in: path
          name: device_id
          schema:
            type: string
            format: uuid
          required: true
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this impairment event.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImpairmentEventReleaseError'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ImpairmentEventReleaseError'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ImpairmentEventReleaseError'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImpairmentEvent'
          description: ''
        '400':
          description: Validation error.
          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: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - oauth2:
            - operations:write
        - cookieAuth: []
components:
  schemas:
    ImpairmentEventReleaseError:
      type: object
      description: Error payload for release retrying/failed side-effect callbacks.
      properties:
        last_error:
          type: string
          default: ''
    ImpairmentEvent:
      type: object
      description: Response shape for impairment events.
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        source:
          allOf:
            - $ref: '#/components/schemas/ImpairmentEventSourceEnum'
          readOnly: true
        external_event_id:
          type: string
          readOnly: true
        scope:
          allOf:
            - $ref: '#/components/schemas/ImpairmentEventScopeEnum'
          readOnly: true
        status:
          allOf:
            - $ref: '#/components/schemas/ImpairmentEventStatusEnum'
          readOnly: true
        reason:
          type: string
          readOnly: true
        details:
          type: object
          description: Opaque Radar-provided impairment metadata keyed by detail name.
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        clear_reason:
          type: string
          maxLength: 255
        clear_details:
          type: object
          description: Opaque Radar-provided impairment metadata keyed by detail name.
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        instance_id:
          type: string
          readOnly: true
        requested_device_id:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        topology_group_id:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        devices:
          type: array
          items:
            $ref: '#/components/schemas/ImpairmentEventDevice'
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
        cleared_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
      required:
        - clear_details
        - cleared_at
        - created_at
        - details
        - devices
        - external_event_id
        - id
        - instance_id
        - reason
        - requested_device_id
        - scope
        - source
        - status
        - topology_group_id
        - updated_at
    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'
    ImpairmentEventSourceEnum:
      enum:
        - radar
      type: string
      description: '* `radar` - Radar'
    ImpairmentEventScopeEnum:
      enum:
        - node
        - pod
      type: string
      description: |-
        * `node` - Node
        * `pod` - Pod
    ImpairmentEventStatusEnum:
      enum:
        - accepted
        - cordoned
        - release_pending
        - release_retrying
        - release_failed
        - partially_failed
        - failed
        - cleared
      type: string
      description: |-
        * `accepted` - Accepted
        * `cordoned` - Cordoned
        * `release_pending` - Release Pending
        * `release_retrying` - Release Retrying
        * `release_failed` - Release Failed
        * `partially_failed` - Partially Failed
        * `failed` - Failed
        * `cleared` - Cleared
    JsonValue:
      description: Any JSON value.
      nullable: true
      anyOf:
        - type: string
        - type: number
        - type: integer
        - type: boolean
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
    ImpairmentEventDevice:
      type: object
      description: Per-device state for an impairment event.
      properties:
        device_id:
          type: string
          format: uuid
          readOnly: true
        device_name:
          type: string
          readOnly: true
        status:
          allOf:
            - $ref: '#/components/schemas/ImpairmentEventDeviceStatusEnum'
          readOnly: true
        previous_operational_status:
          allOf:
            - $ref: '#/components/schemas/DeviceOperationalStatusEnum'
          readOnly: true
        occupied:
          type: boolean
          readOnly: true
        active_instance_id:
          type: string
          readOnly: true
        last_error:
          type: string
          readOnly: true
        retry_count:
          type: integer
          readOnly: true
        next_retry_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        cordoned_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        cleared_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        released_at:
          type: string
          format: date-time
          nullable: true
      required:
        - active_instance_id
        - cleared_at
        - cordoned_at
        - device_id
        - device_name
        - last_error
        - next_retry_at
        - occupied
        - previous_operational_status
        - retry_count
        - status
    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
    ImpairmentEventDeviceStatusEnum:
      enum:
        - pending
        - cordoned
        - failed
        - retrying
        - release_pending
        - release_retrying
        - release_failed
        - cleared
      type: string
      description: |-
        * `pending` - Pending
        * `cordoned` - Cordoned
        * `failed` - Failed
        * `retrying` - Retrying
        * `release_pending` - Release Pending
        * `release_retrying` - Release Retrying
        * `release_failed` - Release Failed
        * `cleared` - Cleared
    DeviceOperationalStatusEnum:
      enum:
        - unknown
        - quarantine
        - validation
        - available
        - in_use
        - delegated
        - pending_handover
        - drained
        - failed
      type: string
      description: |-
        * `unknown` - Unknown
        * `quarantine` - Quarantine
        * `validation` - Validation
        * `available` - Available
        * `in_use` - In Use
        * `delegated` - Delegated
        * `pending_handover` - Pending Handover
        * `drained` - Drained
        * `failed` - Failed
  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.