Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

LOCAL DRAFT PREVIEW. Not published. Pages tagged Draft are new, pages tagged Updated have additions. Yellow 'To confirm' boxes are internal questions.

Fini home pagelight logodark logo
    Documentation
    Use cases
    Trust & pricing
    API reference

    API Setup

    • API overview
    • API contract
    • Static IP Addresses
    • Database and Warehouse Connections
    • MCP Connections

    LLM Access

    • Coding agents
    • Claude Plugin

    Agents

    • Overview
    • POST
      Create agent
    • List agents
    • DEL
      Delete agent

    Analytics

    • Overview
    • Get agent analytics
    • Get agent analytics section

    Prompts

    • Overview
    • Get prompts
    • Get prompt history
    • Get prompt version
    • Update prompts
    • POST
      Create prompt draft version
    • Get prompt draft version
    • Publish prompt draft version
    • DEL
      Delete prompt draft version

    Actions

    • Overview
    • List actions
    • Get action
    • POST
      Create action
    • Update action
    • DEL
      Delete action
    • Test action
    • List agent assignments
    • POST
      Assign to agents

    Attributes

    • Overview
    • List attributes
    • Get attribute
    • POST
      Create attribute
    • Update attribute
    • DEL
      Delete attribute
    • Test attribute
    • List agent assignments
    • POST
      Assign to agents

    External API calls

    • Overview
    • List external API calls
    • Get external API call
    • POST
      Create external API call
    • Update external API call
    • DEL
      Delete external API call
    • Test external API call

    Intent Rules

    • Overview
    • List intent rules
    • Get intent rule
    • Get intent-rule fields context
    • POST
      Generate intent-rule draft with AI
    • POST
      Create intent rule
    • Update intent rule
    • List intent-rule versions
    • Get intent-rule version
    • Publish intent-rule draft
    • Restore intent-rule version as draft
    • DEL
      Delete intent-rule draft version
    • Get rule version test paths
    • Preview rule test paths
    • Run rule version test path
    • Run rule test path from config
    • DEL
      Delete intent rule

    Guardrails

    • Overview
    • List guardrail check types
    • List guardrail policies
    • Get guardrail policy
    • POST
      Create guardrail policy
    • Update guardrail policy
    • DEL
      Delete guardrail policy
    • List guardrail runs
    • Get guardrail hits

    Business Rules

    • Overview
    • List Business Rules
    • Get Business Rule
    • Get Business Rule fields context
    • List default Business Rules
    • POST
      Create Business Rule
    • POST
      Duplicate Business Rule
    • POST
      Evaluate Business Rule
    • Get Business Rule test fields
    • Preview Business Rule test fields
    • Update Business Rule
    • DEL
      Delete Business Rule

    Reply Rules

    • Overview
    • Get reply rules
    • Get reply rule fields context
    • Update reply rule

    Tag groups

    • Overview
    • List tag groups
    • Get tag group
    • POST
      Create tag group
    • Update tag group
    • DEL
      Delete tag group

    Tags

    • Overview
    • Get tag
    • List tags in group
    • List tags across groups
    • POST
      Create tag
    • Update tag
    • DEL
      Delete tag

    Conversations

    • Overview
    • List conversations
    • Get conversation
    • Get event metadata
    • POST
      Generate Answer
    • Send conversation feedback
    • Mark feedback resolved
    • POST
      Add feedback note
    • POST
      Evaluate conversation rule
    • DEL
      Delete conversation
    • DEL
      Bulk delete conversations

    Refine with AI

    • Overview
    • POST
      Create Refine with AI iteration
    • Get active Refine with AI session
    • Get Refine with AI session

    Replays

    • Replays
    • POST
      Create replay
    • List replays
    • Get replay
    • Get replay events

    Test Sets

    • Overview
    • List test sets
    • POST
      Create a test set
    • Get fields context
    • Get a test set
    • Update a test set
    • DEL
      Delete a test set
    • POST
      Add criteria
    • Update a criterion
    • DEL
      Delete a criterion
    • List runs
    • Start a run
    • Get a run

    Knowledge

    Updates

    • Changelog
      Draft
    Test Sets

    Update a test set

    > ## Documentation Index
    > Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
    > Use this file to discover all available pages before exploring further.
    
    # Update a test set
    
    > Update a test set's name, description, or conversation list.
    
    Updates one or more test set fields.
    
    ## Headers
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
    </ParamField>
    
    <ParamField header="Content-Type" type="string" required>
      `application/json`
    </ParamField>
    
    ## Path parameters
    
    <ParamField path="testSetId" type="string" required>
      Test set ID.
    </ParamField>
    
    ## Body parameters
    
    <ParamField body="name" type="string">
      New non-empty name.
    </ParamField>
    
    <ParamField body="description" type="string | null">
      New description. Send `null` to clear it.
    </ParamField>
    
    <ParamField body="conversationIds" type="string[]">
      Replacement list of one to 200 existing conversation IDs from the same agent. Each value must be a UUID.
    </ParamField>
    
    ## Response
    
    Returns the updated [TestSet object](/en/api-reference/test-sets#testset-object), including resolved criteria and conversation summaries.
    
    <RequestExample>
      ~~~bash cURL theme={null}
      curl --request PATCH \
        --url 'https://api-prod.usefini.com/v2/test-sets/44c1f705-8e1a-4f61-8c4c-d519d37fb6b7/public' \
        --header 'Authorization: Bearer fini_your_api_key' \
        --header 'Content-Type: application/json' \
        --data '{
          "name": "Refund regression set",
          "description": "Refund-policy and exchange conversations for release checks.",
          "conversationIds": [
            "a5221094-72d4-4b9c-8d30-2f785b108bd9",
            "2dd2b920-f57c-4e92-8a6a-f310d4c8594d"
          ]
        }'
      ~~~
    
      ~~~javascript Node.js theme={null}
      const testSetId = '44c1f705-8e1a-4f61-8c4c-d519d37fb6b7';
    
      const response = await fetch(`https://api-prod.usefini.com/v2/test-sets/${testSetId}/public`, {
        method: 'PATCH',
        headers: {
          Authorization: 'Bearer fini_your_api_key',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({
          name: 'Refund regression set',
          description: 'Refund-policy and exchange conversations for release checks.',
          conversationIds: [
            'a5221094-72d4-4b9c-8d30-2f785b108bd9',
            '2dd2b920-f57c-4e92-8a6a-f310d4c8594d'
          ]
        })
      });
    
      const testSet = await response.json();
      ~~~
    
      ~~~python Python theme={null}
      import requests
    
      test_set_id = "44c1f705-8e1a-4f61-8c4c-d519d37fb6b7"
    
      response = requests.patch(
          f"https://api-prod.usefini.com/v2/test-sets/{test_set_id}/public",
          headers={
              "Authorization": "Bearer fini_your_api_key",
              "Content-Type": "application/json",
          },
          json={
              "name": "Refund regression set",
              "description": "Refund-policy and exchange conversations for release checks.",
              "conversationIds": [
                  "a5221094-72d4-4b9c-8d30-2f785b108bd9",
                  "2dd2b920-f57c-4e92-8a6a-f310d4c8594d",
              ],
          },
      )
    
      test_set = response.json()
      ~~~
    </RequestExample>
    
    <ResponseExample>
      ~~~json 200 OK theme={null}
      {
        "id": "44c1f705-8e1a-4f61-8c4c-d519d37fb6b7",
        "companyId": "1d2a4c9f-59f8-4f9c-bd36-6f12e0d5d927",
        "name": "Refund regression set",
        "description": "Refund-policy and exchange conversations for release checks.",
        "conversationIds": [
          "a5221094-72d4-4b9c-8d30-2f785b108bd9",
          "2dd2b920-f57c-4e92-8a6a-f310d4c8594d"
        ],
        "conversations": [
          {
            "id": "a5221094-72d4-4b9c-8d30-2f785b108bd9",
            "subject": "Customer asks about refund eligibility"
          },
          {
            "id": "2dd2b920-f57c-4e92-8a6a-f310d4c8594d",
            "subject": "Exchange request after delivery"
          }
        ],
        "criteria": [
          {
            "id": "96eab02d-3bc3-4b90-ae5b-1a41a1444afa",
            "testSetId": "44c1f705-8e1a-4f61-8c4c-d519d37fb6b7",
            "companyId": "1d2a4c9f-59f8-4f9c-bd36-6f12e0d5d927",
            "defaultCriterionId": null,
            "name": "Goal resolution",
            "type": "complex_judge",
            "judgePrompt": "Judge whether the conversation resolved the user's goal.",
            "passPrompt": "The user's goal was resolved.",
            "failPrompt": "The user's goal was not resolved.",
            "condition": null,
            "blocking": true,
            "isActive": true,
            "createdAt": "2026-07-28T08:56:12.000Z",
            "updatedAt": "2026-07-28T08:56:12.000Z"
          }
        ],
        "createdBy": null,
        "createdAt": "2026-07-28T08:55:32.000Z",
        "updatedAt": "2026-07-28T09:10:18.000Z"
      }
      ~~~
    </ResponseExample>
    
    
    ## Related topics
    
    - [Overview](/en/api-reference/test-sets.md)
    - [API overview](/en/api-reference/overview.md)
    - [Test Suite](/en/testing/test-suite.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Get a test set
    Delete a test set
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform