---
title: "PUT /testsets/{testSetId}"
method: PUT
path: "/testsets/{testSetId}"
---

# PUT /testsets/{testSetId}

`PUT /testsets/{testSetId}`

The action to update the test set.

## Path parameters

- `testSetId` string, required

## Request body

- object
  - `testSetName` string, required — The new test set name.
  - `description` string — The new test set description.

## Response `200`

Success

- UpdateTestSetResponse
  - `testSetId` string — The test set Id for which update test operation to be performed.
  - `testSetName` string — The test set name for the updated test set.
  - `description` string — The test set description for the updated test set.
  - `modality` 'Text' | 'Audio' — Indicates whether audio or text is used for the updated test set.
  - `status` 'Importing' | 'PendingAnnotation' | 'Deleting' | 'ValidationError' | 'Ready' — The status for the updated test set.
  - `roleArn` string — The roleARN used for any operation in the test set to access resources in the Amazon Web Services account.
  - `numTurns` integer — The number of conversation turns from the updated test set.
  - `storageLocation` object — The Amazon S3 storage location for the updated test set.
    - `s3BucketName` string, required — The name of the Amazon S3 bucket in which the test set is stored.
    - `s3Path` string, required — The path inside the Amazon S3 bucket where the test set is stored.
    - `kmsKeyArn` string — The Amazon Resource Name (ARN) of an Amazon Web Services Key Management Service (KMS) key for encrypting the test set.
  - `creationDateTime` string, date-time — The creation date and time for the updated test set.
  - `lastUpdatedDateTime` string, date-time — The date and time of the last update for the updated test set.

## Other responses

- `480` — ThrottlingException
- `481` — ServiceQuotaExceededException
- `482` — ValidationException
- `483` — PreconditionFailedException
- `484` — ConflictException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/lexv2-models.md) · [All operations](https://skmtc.net/aws/apis/lexv2-models/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lexv2-models/versions/6997ba482d72/schema)
