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

# Bulk approve validation rules

> Approve multiple preview validation rules at once to activate them for automatic validation runs



## OpenAPI

````yaml post /v4/data-validation/rules/actions/bulk-approve
openapi: 3.0.3
info:
  title: Kadoa API
  version: 3.0.0
  contact:
    name: Support
    email: support@kadoa.com
servers:
  - url: https://api.kadoa.com
security: []
paths:
  /v4/data-validation/rules/actions/bulk-approve:
    post:
      tags:
        - Data Validation
        - Rules Library
      description: Bulk approve preview rules for a workflow
      parameters: []
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkApproveRules'
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkApproveRulesResponse'
        '401':
          description: Unauthorized - Authentication required or failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: Indicates an error occurred
                    example: true
                  message:
                    type: string
                    description: Error message
                    example: Authentication required
                required:
                  - error
                  - message
        '500':
          description: Internal Server Error - Unexpected system error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: Indicates an error occurred
                    example: true
                  message:
                    type: string
                    description: Error message
                    example: Internal server error
                  details:
                    type: object
                    description: Additional error details
                required:
                  - error
                  - message
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BulkApproveRules:
      type: object
      properties:
        workflowId:
          type: string
        ruleIds:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - workflowId
        - ruleIds
      title: BulkApproveRules
      description: Request to bulk approve specific preview rules for a workflow
    BulkApproveRulesResponse:
      type: object
      properties:
        error:
          type: boolean
          enum:
            - false
        message:
          type: string
        data:
          type: object
          properties:
            approvedCount:
              type: number
            skippedCount:
              type: number
            workflowId:
              type: string
            approvedRuleIds:
              type: array
              items:
                type: string
            skippedRuleIds:
              type: array
              items:
                type: string
          required:
            - approvedCount
            - skippedCount
            - workflowId
            - approvedRuleIds
            - skippedRuleIds
      required:
        - error
        - message
        - data
      title: BulkApproveRulesResponse
      description: Summary of bulk rule approval operation with detailed results
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````