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

# Toggle validation

> Enable or disable data validation for a specific workflow with optional reason tracking



## OpenAPI

````yaml put /v4/data-validation/workflows/{workflowId}/validation/toggle
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/workflows/{workflowId}/validation/toggle:
    put:
      tags:
        - Data Validation
        - Core Validation
      summary: Toggle data validation for a workflow
      description: Enables or disables data validation for a specific workflow
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
          description: The workflow ID to update validation settings for
      requestBody:
        description: Body
        content:
          application/json:
            schema:
              type: object
              properties:
                enabled:
                  type: boolean
                  description: >-
                    Whether to enable or disable data validation for the
                    workflow
              required:
                - enabled
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: boolean
                    description: Whether an error occurred
                  message:
                    type: string
                    description: Success message indicating the action performed
                  workflowId:
                    type: string
                    description: The workflow ID that was updated
                  enabled:
                    type: boolean
                    description: The new validation status for the workflow
                required:
                  - error
                  - message
                  - workflowId
                  - enabled
        '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:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````