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

# Bulk unlink tests from agent

> Unlink one or more tests from an agent. Tests that are not linked are skipped.



## OpenAPI

````yaml /api-reference/openapi.json post /agent-tests/bulk-unlink
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /agent-tests/bulk-unlink:
    post:
      tags:
        - agent-tests
      summary: Bulk unlink tests from agent
      description: >-
        Unlink one or more tests from an agent. Tests that are not linked are
        skipped.
      operationId: bulk_delete_agent_test_links_agent_tests_bulk_unlink_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentTestBulkDelete'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentTestsBulkUnlinkResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentTestBulkDelete:
      properties:
        agent_uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Agent Uuid
          description: Agent to unlink tests from
          examples:
            - f47ac10b-58cc-4372-a567-0e02b2c3d479
        test_uuids:
          items:
            type: string
            maxLength: 36
            minLength: 36
          type: array
          title: Test Uuids
          description: Tests to unlink from the agent
          examples:
            - - b1c2d3e4-f5a6-7890-bcde-f12345678901
      type: object
      required:
        - agent_uuid
        - test_uuids
      title: AgentTestBulkDelete
    AgentTestsBulkUnlinkResponse:
      properties:
        deleted_count:
          type: integer
          title: Deleted Count
          description: Number of links removed. Tests that were not linked are excluded
        message:
          type: string
          title: Message
          description: Confirmation message
      type: object
      required:
        - deleted_count
        - message
      title: AgentTestsBulkUnlinkResponse
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````