---
title: "Update Agent Test Folder"
method: PATCH
path: "/v1/convai/agent-testing/folders/{folder_id}"
tags: ["Agents Platform"]
---

# Update Agent Test Folder

`PATCH /v1/convai/agent-testing/folders/{folder_id}`

Updates an agent test folder. Currently only supports updating the folder name.

## Path parameters

- `folder_id` string, required — The folder ID.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Request body

- BodyUpdateAgentTestFolderV1ConvaiAgentTestingFoldersFolderIdPatch
  - `name` string, required — The new name for the folder

## Response `200`

Folder successfully updated

- GetAgentTestFolderResponseModel
  - `id` string, required
  - `name` string, required
  - `folder_path` AgentTestFolderPathSegmentResponseModel[] — The path from the root folder to the current folder.
    - `id` string, required
    - `name` string
  - `children_count` integer — The number of direct children (tests and subfolders) in this folder

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/versions/57d56f34628a/schema)
