GetAccountPreferences
Returns AWS Chatbot account preferences.
Request Syntax
POST /get-account-preferences HTTP/1.1
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request does not have a request body.
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
-
The preferences related to AWS Chatbot usage in the calling AWS account.
Type: AccountPreferences object
Errors
For information about the errors that are common to all actions, see Common Errors.
- GetAccountPreferencesException
-
We can’t process your request right now because of a server issue. Try again later.
HTTP Status Code: 500
- InvalidRequestException
-
Your request input doesn't meet the constraints required by AWS Chatbot.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: