---
title: "PUT /bots/{botId}/"
method: PUT
path: "/bots/{botId}/"
---

# PUT /bots/{botId}/

`PUT /bots/{botId}/`

Updates the configuration of an existing bot.

## Path parameters

- `botId` string, required

## Request body

- object
  - `botName` string, required — The new name of the bot. The name must be unique in the account that creates the bot.
  - `description` string — A description of the bot.
  - `roleArn` string, required — The Amazon Resource Name (ARN) of an IAM role that has permissions to access the bot.
  - `dataPrivacy` object, required — By default, data stored by Amazon Lex is encrypted. The <code>DataPrivacy</code> structure provides settings that determine how Amazon Lex handles special cases of securing the data for your bot.
    - `childDirected` boolean — For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying <code>true</code> or <code>false</code> in the <code>childDirected</code> field. By specifying <code>true</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying <code>false</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is not</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the <code>childDirected</code> field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the <a href="http://aws.amazon.com/lex/faqs#data-security">Amazon Lex FAQ</a>.
  - `idleSessionTTLInSeconds` integer, required — <p>The time, in seconds, that Amazon Lex should keep information about a user's conversation with the bot.</p> <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Lex deletes any data provided before the timeout.</p> <p>You can specify between 60 (1 minute) and 86,400 (24 hours) seconds.</p>
  - `botType` 'Bot' | 'BotNetwork' — The type of the bot to be updated.
  - `botMembers` BotMember[] — The list of bot members in the network associated with the update action.
    - `botMemberId` string, required — The unique ID of a bot that is a member of this network of bots.
    - `botMemberName` string, required — The unique name of a bot that is a member of this network of bots.
    - `botMemberAliasId` string, required — The alias ID of a bot that is a member of this network of bots.
    - `botMemberAliasName` string, required — The alias name of a bot that is a member of this network of bots.
    - `botMemberVersion` string, required — The version of a bot that is a member of this network of bots.
  - `errorLogSettings` object — Settings parameters for the error logs, whether it is enabled or disabled.
    - `enabled` boolean — Settings parameters for the error logs, when it is enabled.

## Response `202`

Success

- UpdateBotResponse
  - `botId` string — The unique identifier of the bot that was updated.
  - `botName` string — The name of the bot after the update.
  - `description` string — The description of the bot after the update.
  - `roleArn` string — The Amazon Resource Name (ARN) of the IAM role used by the bot after the update.
  - `dataPrivacy` object — The data privacy settings for the bot after the update.
    - `childDirected` boolean, required — For each Amazon Lex bot created with the Amazon Lex Model Building Service, you must specify whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to the Children's Online Privacy Protection Act (COPPA) by specifying <code>true</code> or <code>false</code> in the <code>childDirected</code> field. By specifying <code>true</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. By specifying <code>false</code> in the <code>childDirected</code> field, you confirm that your use of Amazon Lex <b>is not</b> related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. You may not specify a default value for the <code>childDirected</code> field that does not accurately reflect whether your use of Amazon Lex is related to a website, program, or other application that is directed or targeted, in whole or in part, to children under age 13 and subject to COPPA. If your use of Amazon Lex relates to a website, program, or other application that is directed in whole or in part, to children under age 13, you must obtain any required verifiable parental consent under COPPA. For information regarding the use of Amazon Lex in connection with websites, programs, or other applications that are directed or targeted, in whole or in part, to children under age 13, see the <a href="http://aws.amazon.com/lex/faqs#data-security">Amazon Lex FAQ</a>.
  - `idleSessionTTLInSeconds` integer — The session timeout, in seconds, for the bot after the update.
  - `botStatus` 'Creating' | 'Available' | 'Inactive' | 'Deleting' | 'Failed' | 'Versioning' | 'Importing' | 'Updating' — Shows the current status of the bot. The bot is first in the <code>Creating</code> status. Once the bot is read for use, it changes to the <code>Available</code> status. After the bot is created, you can use the <code>DRAFT</code> version of the bot.
  - `creationDateTime` string, date-time — A timestamp of the date and time that the bot was created.
  - `lastUpdatedDateTime` string, date-time — A timestamp of the date and time that the bot was last updated.
  - `botType` 'Bot' | 'BotNetwork' — The type of the bot that was updated.
  - `botMembers` BotMember[] — The list of bot members in the network that was updated.
    - `botMemberId` string, required — The unique ID of a bot that is a member of this network of bots.
    - `botMemberName` string, required — The unique name of a bot that is a member of this network of bots.
    - `botMemberAliasId` string, required — The alias ID of a bot that is a member of this network of bots.
    - `botMemberAliasName` string, required — The alias name of a bot that is a member of this network of bots.
    - `botMemberVersion` string, required — The version of a bot that is a member of this network of bots.
  - `errorLogSettings` object — Settings for managing error logs within the response of an update bot operation.
    - `enabled` boolean, required — Settings parameters for the error logs, when it is enabled.

## 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)
