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

# Parse an .xlsx into row dicts for client-side preview before submit



## OpenAPI

````yaml post /api/govern/data-access/policies/bulk/parse
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/govern/data-access/policies/bulk/parse:
    post:
      tags:
        - Policy Management
      summary: Parse an .xlsx into row dicts for client-side preview before submit
      operationId: parse_bulk_excel_preview_api_govern_data_access_policies_bulk_parse_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_parse_bulk_excel_preview_api_govern_data_access_policies_bulk_parse_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkPolicyParsePreviewResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    Body_parse_bulk_excel_preview_api_govern_data_access_policies_bulk_parse_post:
      properties:
        excel_file:
          type: string
          contentMediaType: application/octet-stream
          title: Excel File
          description: The .xlsx file to parse.
      type: object
      required:
        - excel_file
      title: >-
        Body_parse_bulk_excel_preview_api_govern_data_access_policies_bulk_parse_post
    BulkPolicyParsePreviewResponse:
      properties:
        rows:
          items:
            additionalProperties:
              anyOf:
                - type: string
                - type: boolean
                - type: integer
                - type: number
                - type: 'null'
            type: object
          type: array
          title: Rows
          description: Parsed rows in spreadsheet order; keys match PolicyRow fields.
      type: object
      title: BulkPolicyParsePreviewResponse
      description: >-
        Raw rows extracted from an .xlsx for client-side preview before submit.


        Each row is the values from a single workbook row keyed by header.
        Values

        are returned as-is (str/bool/int/None) without applying PolicyRow

        validation, so the client can show every uploaded row — including rows

        with invalid values — in the editable table for the user to fix.
    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

````