---
title: "PUT /exports/{exportId}/"
method: PUT
path: "/exports/{exportId}/"
---

# PUT /exports/{exportId}/

`PUT /exports/{exportId}/`

Updates the password used to protect an export zip archive.

The password is not required. If you don't supply a password, Amazon Lex generates a zip file that is not protected by a password. This is the archive that is available at the pre-signed S3 URL provided by the [DescribeExport](https://docs.aws.amazon.com/lexv2/latest/APIReference/API_DescribeExport.html) operation.

## Path parameters

- `exportId` string, required

## Request body

- object
  - `filePassword` string, password — The new password to use to encrypt the export zip archive.

## Response `202`

Success

- UpdateExportResponse
  - `exportId` string — The unique identifier Amazon Lex assigned to the export.
  - `resourceSpecification` object — A description of the type of resource that was exported, either a bot or a bot locale.
    - `botExportSpecification` object — Parameters for exporting a bot.
      - `botId` string, required — The identifier of the bot assigned by Amazon Lex.
      - `botVersion` string, required — The version of the bot that was exported. This will be either <code>DRAFT</code> or the version number.
    - `botLocaleExportSpecification` object — Parameters for exporting a bot locale.
      - `botId` string, required — The identifier of the bot to create the locale for.
      - `botVersion` string, required — The version of the bot to export.
      - `localeId` string, required — The identifier of the language and locale to export. The string must match one of the locales in the bot.
    - `customVocabularyExportSpecification` object — The parameters required to export a custom vocabulary.
      - `botId` string, required — The identifier of the bot that contains the custom vocabulary to export.
      - `botVersion` string, required — The version of the bot that contains the custom vocabulary to export.
      - `localeId` string, required — The locale of the bot that contains the custom vocabulary to export.
  - `fileFormat` 'LexJson' | 'TSV' — The file format used for the files that define the resource. The <code>TSV</code> format is required to export a custom vocabulary only; otherwise use <code>LexJson</code> format.
  - `exportStatus` 'InProgress' | 'Completed' | 'Failed' | 'Deleting' — The status of the export. When the status is <code>Completed</code> the export archive is available for download.
  - `creationDateTime` string, date-time — The date and time that the export was created.
  - `lastUpdatedDateTime` string, date-time — The date and time that the export was last updated.

## Other responses

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

---

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