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

# Set whether a rule's failure stops loads

> Set whether a failure of this rule stops a load of its table. A rule that
feeds Exceptions never blocks loads and can't be changed here (409).

**Required Role**: nx1_quality_admin



## OpenAPI

````yaml put /api/dq/rules/ids/{dq_id}/load-blocking
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/dq/rules/ids/{dq_id}/load-blocking:
    put:
      tags:
        - Data quality
      summary: Set whether a rule's failure stops loads
      description: >-
        Set whether a failure of this rule stops a load of its table. A rule
        that

        feeds Exceptions never blocks loads and can't be changed here (409).


        **Required Role**: nx1_quality_admin
      operationId: set_rule_load_blocking_api_dq_rules_ids__dq_id__load_blocking_put
      parameters:
        - name: dq_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: The unique ID of the data quality rule.
            title: Dq Id
          description: The unique ID of the data quality rule.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDQLoadBlockingRequest'
      responses:
        '200':
          description: Setting changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DQRule'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Rule not found.
        '409':
          description: The rule feeds Exceptions, so it never blocks loads.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    SetDQLoadBlockingRequest:
      properties:
        blocks_load:
          type: boolean
          title: Blocks Load
          description: 'true: a failure stops the load. false: it never does.'
      type: object
      required:
        - blocks_load
      title: SetDQLoadBlockingRequest
      description: Whether a rule's failure stops a load of its table.
    DQRule:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique ID of the data quality rule.
        rule_name:
          type: string
          title: Rule Name
          description: Name of the data quality rule.
        rule_description:
          type: string
          title: Rule Description
          description: Brief explanation of what the rule checks.
        sql:
          type: string
          title: Sql
          description: Trino SQL query used to validate the rule.
        accepted:
          type: boolean
          title: Accepted
          description: Whether you have accepted this rule.
        table:
          type: string
          title: Table
          description: The database table this rule applies to.
        external_id:
          anyOf:
            - type: string
            - type: 'null'
          title: External Id
          description: Uniform Resource Name (URN) of the assertion in DataHub.
        spark_sql:
          anyOf:
            - type: string
            - type: 'null'
          title: Spark Sql
          description: Spark SQL query of the rule, if applicable.
        success_value:
          anyOf:
            - type: string
            - type: 'null'
          title: Success Value
          description: Expected success condition for this rule.
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
          description: Username or identifier of who created this rule.
        approved_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Approved By
          description: Username of who approved this rule.
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: Timestamp when the rule was created.
        approved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Approved At
          description: Timestamp when the rule was approved.
        is_created:
          type: boolean
          title: Is Created
          description: >-
            True once the rule has been explicitly created (not just a
            suggestion).
          default: false
        blocks_load:
          type: boolean
          title: Blocks Load
          description: >-
            The rule's setting for whether a failure stops a load of its table.
            Ignored while the rule feeds Exceptions.
          default: true
        feeds_exceptions:
          type: boolean
          title: Feeds Exceptions
          description: Whether the Exceptions workflow runs this rule.
          default: false
        effective_blocks_load:
          type: boolean
          title: Effective Blocks Load
          description: >-
            Whether a failure of this rule, once approved, stops a load of its
            table: never for a rule that feeds Exceptions, else its setting.
          default: true
      type: object
      required:
        - id
        - rule_name
        - rule_description
        - sql
        - accepted
        - table
      title: DQRule
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  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.