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

# Update Test Suite

> Update test suite configuration



## OpenAPI

````yaml PATCH /test-suites/{id}
openapi: 3.1.0
info:
  title: RevRing Voice AI API
  description: >-
    RevRing Voice AI platform API for managing AI voice agents, phone calls, SIP
    trunks, and analytics. Build intelligent voice applications that can handle
    inbound and outbound phone calls with AI-powered conversational agents.
  version: 1.0.0
  contact:
    name: RevRing Support
    url: https://revring.ai
servers:
  - url: https://api.revring.ai/v1
    description: Production API
security:
  - apiKeyAuth: []
tags:
  - name: Messaging Connections
    description: Connect messaging providers so agents can send text messages
  - name: Messages
    description: Send text messages and read your message log
  - name: Conversations
    description: List and clear managed conversation threads
  - name: SIP Trunks
    description: Manage SIP trunks for connecting agents to the phone network
  - name: Agents
    description: Manage AI voice agents and their configuration
  - name: Agent Folders
    description: Organize agents into folders for dashboard navigation
  - name: Calls
    description: Manage and query phone calls
  - name: Analytics
    description: Get analytics and metrics about your calls
  - name: Knowledge Bases
    description: >-
      Manage knowledge bases and sources for agent retrieval-augmented
      generation
  - name: Test Suites
    description: Manage test suites, test cases, and test runs for agent evaluation
  - name: Voices
    description: Browse the voices available to your organization for agent speech
  - name: Webhooks
    description: Webhook delivery settings for your organization
  - name: Alerts
    description: Alert rules on call metrics, delivered to a webhook or Slack
  - name: Contacts
    description: What your agents remember about people
  - name: Integrations
    description: Calendars your agents book on
  - name: Activity
    description: Who changed what, across the account.
paths:
  /test-suites/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Test suite ID
        schema:
          type: string
          format: uuid
    patch:
      tags:
        - Test Suites
      summary: Update Test Suite
      description: Update test suite configuration
      operationId: updateTestSuite
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestSuiteUpdate'
      responses:
        '200':
          description: Test suite updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/TestSuite'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/BillingInactiveError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    TestSuiteUpdate:
      type: object
      properties:
        testMode:
          type: string
          enum:
            - chat
            - voice
            - sms
            - web_chat
          description: >-
            How this suite's tests run. 'chat' (default): fast text conversation
            against the agent's call configuration. 'voice': full simulated
            phone call. 'sms' / 'web_chat': simulated text conversation against
            the agent's SMS or web chat setup (its channel prompt, knowledge,
            and tools).
        name:
          type: string
          maxLength: 128
          description: Test suite name
        targetAgentId:
          type: string
          description: ID of the agent to test
        testerAgentId:
          type: string
          nullable: true
          description: ID of a custom tester agent
        maxConcurrency:
          type: integer
          nullable: true
          minimum: 2
          maximum: 100
          description: Maximum concurrent test calls
        defaultVariables:
          type: object
          nullable: true
          description: Default variables for all test cases
        toolMocks:
          type: object
          nullable: true
          description: >-
            Canned results for the agent's custom tools during every test in
            this suite, keyed by tool name: { "<tool>": { "response": <any
            JSON>, "status"?: <HTTP status, default 200> } }. A mocked tool is
            not called; its response reaches the agent exactly as the webhook's
            body would, and a non-2xx status means the tool's response variables
            are not saved. A test case's entries win over the suite. Up to 50
            tools; null clears. Transcript rows of mocked calls carry mocked:
            true and httpStatus.
          additionalProperties:
            type: object
            properties:
              response:
                description: What the webhook would have returned (any JSON)
              status:
                type: integer
                minimum: 100
                maximum: 599
                description: >-
                  The HTTP status the webhook would have answered with (default
                  200)
    TestSuite:
      type: object
      description: Test suite for evaluating agent performance
      properties:
        id:
          type: string
          format: uuid
        organizationId:
          type: string
          format: uuid
        name:
          type: string
          description: Test suite name
        testMode:
          type: string
          enum:
            - chat
            - voice
            - sms
            - web_chat
          description: How this suite's tests run
        targetAgentId:
          type: string
          format: uuid
          description: ID of the agent being tested
        targetAgentName:
          type: string
          nullable: true
          description: Name of the target agent
        testerAgentId:
          type: string
          format: uuid
          nullable: true
          description: ID of a custom tester agent (null = built-in tester)
        testerAgentName:
          type: string
          nullable: true
          description: Name of the tester agent
        maxConcurrency:
          type: integer
          nullable: true
          minimum: 2
          maximum: 100
          description: Maximum concurrent test calls (null = org default)
        defaultVariables:
          type: object
          nullable: true
          description: Default variables for all test cases in this suite
        toolMocks:
          type: object
          nullable: true
          description: >-
            Canned results for the agent's custom tools during every test in
            this suite, keyed by tool name: { "<tool>": { "response": <any
            JSON>, "status"?: <HTTP status, default 200> } }. A mocked tool is
            not called; its response reaches the agent exactly as the webhook's
            body would, and a non-2xx status means the tool's response variables
            are not saved. A test case's entries win over the suite. Up to 50
            tools; null clears. Transcript rows of mocked calls carry mocked:
            true and httpStatus.
          additionalProperties:
            type: object
            properties:
              response:
                description: What the webhook would have returned (any JSON)
              status:
                type: integer
                minimum: 100
                maximum: 599
                description: >-
                  The HTTP status the webhook would have answered with (default
                  200)
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - organizationId
        - name
        - targetAgentId
        - createdAt
        - updatedAt
  responses:
    BadRequestError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: invalid_body
              details:
                type: object
    UnauthorizedError:
      description: Authentication required or API key invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: unauthorized
    BillingInactiveError:
      description: Subscription inactive or billing issue
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: billing_inactive
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: not_found
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Generate API keys from the RevRing
        dashboard. A key is either full access or read-only; a read-only key is
        refused with 403 read_only_key on any request that creates, changes or
        deletes.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.