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

# Decide on a flow's item

> Queue a decision on an inbox flow's item (one of the case's
`source_actions`): its flow applies it on its next run, which this asks
Airflow to start. A work item's decisions are its team's; an approval's
are its approvers'. One pending decision per case.



## OpenAPI

````yaml post /api/exceptions/{case_id}/decisions
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/exceptions/{case_id}/decisions:
    post:
      tags:
        - Exceptions
      summary: Decide on a flow's item
      description: |-
        Queue a decision on an inbox flow's item (one of the case's
        `source_actions`): its flow applies it on its next run, which this asks
        Airflow to start. A work item's decisions are its team's; an approval's
        are its approvers'. One pending decision per case.
      operationId: request_decision_api_exceptions__case_id__decisions_post
      parameters:
        - name: case_id
          in: path
          required: true
          schema:
            type: integer
            title: Case Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    DecisionRequest:
      properties:
        action:
          type: string
          maxLength: 32
          title: Action
          description: One of the case's `source_actions`.
        version:
          type: integer
          title: Version
          description: The case version you saw; a stale one is a 409.
        fields:
          additionalProperties: true
          type: object
          title: Fields
          description: '`class` for a reclassification, and an optional or required `note`.'
      type: object
      required:
        - action
        - version
      title: DecisionRequest
      description: A decision on an inbox flow's item, from the case's `source_actions`.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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