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

# Suggest Ranger policies for a table or a schema's tables



## OpenAPI

````yaml post /api/govern/data-access/suggest
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/suggest:
    post:
      tags:
        - Policy management
      summary: Suggest Ranger policies for a table or a schema's tables
      operationId: suggest_policies_api_govern_data_access_suggest_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/api__models__policy_suggestion_models__SuggestRequest
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuggestBatchResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    api__models__policy_suggestion_models__SuggestRequest:
      properties:
        catalog:
          type: string
          title: Catalog
          description: Catalog name.
        schema:
          type: string
          title: Schema
          description: Schema name.
        table:
          anyOf:
            - type: string
            - type: 'null'
          title: Table
          description: Table name. Omit to suggest for every table in the schema.
        force:
          type: boolean
          title: Force
          description: Skip open-batch reuse and always dispatch a new crew run.
          default: false
      type: object
      required:
        - catalog
        - schema
      title: SuggestRequest
      description: >-
        Request one table, or all tables in a schema (hard cap enforced
        server-side).
    SuggestBatchResponse:
      properties:
        batch_id:
          type: string
          title: Batch Id
        runs:
          items:
            $ref: '#/components/schemas/SuggestionRunRef'
          type: array
          title: Runs
      type: object
      required:
        - batch_id
      title: SuggestBatchResponse
      description: Response for POST /suggest — the batch id and its per-table runs.
    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
    SuggestionRunRef:
      properties:
        table_fqn:
          type: string
          title: Table Fqn
        correlation_id:
          type: string
          title: Correlation Id
      type: object
      required:
        - table_fqn
        - correlation_id
      title: SuggestionRunRef
      description: One dispatched per-table run.
  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.