Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

UpdateAccountPreferences - Amazon Q Developer in chat applications

UpdateAccountPreferences

Updates Amazon Q Developer account preferences.

Request Syntax

POST /update-account-preferences HTTP/1.1 Content-type: application/json { "TrainingDataCollectionEnabled": boolean, "UserAuthorizationRequired": boolean }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

TrainingDataCollectionEnabled
Note

This paramater is deprecated. For more information about Amazon Q Developer service improvements, see Amazon Q Developer service improvement in the Amazon Q Developer User Guide.

Turns on training data collection.

This helps improve the Amazon Q Developer experience by allowing Amazon Q Developer to store and use your customer information, such as Amazon Q Developer configurations, notifications, user inputs, Amazon Q Developer generated responses, and interaction data. This data helps us to continuously improve and develop Artificial Intelligence (AI) technologies. Your data is not shared with any third parties and is protected using sophisticated controls to prevent unauthorized access and misuse. Amazon Q Developer does not store or use interactions in chat channels with Amazon Q for training AI technologies for Amazon Q Developer.

Type: Boolean

Required: No

UserAuthorizationRequired

Enables use of a user role requirement in your chat configuration.

Type: Boolean

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "AccountPreferences": { "TrainingDataCollectionEnabled": boolean, "UserAuthorizationRequired": boolean } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AccountPreferences

Preferences related to Amazon Q Developer usage in the calling AWS account.

Type: AccountPreferences object

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidParameterException

Your request input doesn't meet the constraints required by Amazon Q Developer.

HTTP Status Code: 400

InvalidRequestException

Your request input doesn't meet the constraints required by Amazon Q Developer.

HTTP Status Code: 400

UpdateAccountPreferencesException

We can’t process your request right now because of a server issue. Try again later.

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.