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

# Update Voice Agent Test Settings

> Change a workspace's test settings. Omitted fields keep their value.



## OpenAPI

````yaml patch /v1/agent/test-settings
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/test-settings:
    patch:
      tags:
        - Agent Tests
      summary: Update Test Settings
      description: |-
        Change the Tests settings of a workspace. Only the fields you send
        change. A test run picks its judge when it starts, so runs already
        started keep the judge they started with.
      parameters:
        - in: query
          name: workspace_id
          description: >-
            The workspace whose settings to use. Required when your team has
            more than one workspace.
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Workspace Id
          deprecated: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentTestSettingsPatch'
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                description: The Tests settings of a workspace, shared by every test in it.
                properties:
                  workspace_id:
                    description: The workspace these settings belong to.
                    title: Workspace Id
                    type: string
                  judge:
                    $ref: '#/components/schemas/AgentTestJudge'
                    description: >-
                      The judge of a Single Turn or Simulation test that names
                      no `judge` of its own, with the reasoning level it judges
                      at. Always the judge such a test is judged by.
                  judge_is_default:
                    description: >-
                      True while the workspace has not set `judge` and reads the
                      platform default.
                    title: Judge Is Default
                    type: boolean
                required:
                  - workspace_id
                  - judge
                  - judge_is_default
                type: object
        '400':
          description: Bad request syntax or unsupported method
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '422':
          description: ''
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '503':
          description: The server cannot process the request due to a high load
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    AgentTestSettingsPatch:
      additionalProperties: false
      description: Only the fields sent change.
      properties:
        judge:
          anyOf:
            - $ref: '#/components/schemas/AgentTestJudge'
            - type: 'null'
          default: null
          description: Null goes back to the platform default. Left out, unchanged.
      title: AgentTestSettingsPatch
      type: object
    AgentTestJudge:
      additionalProperties: false
      description: |-
        The model that judges a `next_reply` or `simulation` test, and how much
        it reasons before its verdict.
      properties:
        model:
          description: >-
            One of the models `GET /v1/agent/llm-models` lists with
            `test_judge`.
          maxLength: 200
          minLength: 1
          title: Model
          type: string
        reasoning_level:
          anyOf:
            - enum:
                - 'off'
                - low
                - medium
                - high
                - very_high
              type: string
            - type: 'null'
          default: null
          description: >-
            One of the levels `test_judge.reasoning_levels` lists for the model.
            Null reasons at the model's default level.
          title: Reasoning Level
      required:
        - model
      title: AgentTestJudge
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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