

# QApps
<a name="API_Operations_QApps"></a>

The following actions are supported by QApps:
+  [AssociateLibraryItemReview](API_qapps_AssociateLibraryItemReview.md) 
+  [AssociateQAppWithUser](API_qapps_AssociateQAppWithUser.md) 
+  [BatchCreateCategory](API_qapps_BatchCreateCategory.md) 
+  [BatchDeleteCategory](API_qapps_BatchDeleteCategory.md) 
+  [BatchUpdateCategory](API_qapps_BatchUpdateCategory.md) 
+  [CreateLibraryItem](API_qapps_CreateLibraryItem.md) 
+  [CreatePresignedUrl](API_qapps_CreatePresignedUrl.md) 
+  [CreateQApp](API_qapps_CreateQApp.md) 
+  [DeleteLibraryItem](API_qapps_DeleteLibraryItem.md) 
+  [DeleteQApp](API_qapps_DeleteQApp.md) 
+  [DescribeQAppPermissions](API_qapps_DescribeQAppPermissions.md) 
+  [DisassociateLibraryItemReview](API_qapps_DisassociateLibraryItemReview.md) 
+  [DisassociateQAppFromUser](API_qapps_DisassociateQAppFromUser.md) 
+  [ExportQAppSessionData](API_qapps_ExportQAppSessionData.md) 
+  [GetLibraryItem](API_qapps_GetLibraryItem.md) 
+  [GetQApp](API_qapps_GetQApp.md) 
+  [GetQAppSession](API_qapps_GetQAppSession.md) 
+  [GetQAppSessionMetadata](API_qapps_GetQAppSessionMetadata.md) 
+  [ImportDocument](API_qapps_ImportDocument.md) 
+  [ListCategories](API_qapps_ListCategories.md) 
+  [ListLibraryItems](API_qapps_ListLibraryItems.md) 
+  [ListQApps](API_qapps_ListQApps.md) 
+  [ListQAppSessionData](API_qapps_ListQAppSessionData.md) 
+  [ListTagsForResource](API_qapps_ListTagsForResource.md) 
+  [PredictQApp](API_qapps_PredictQApp.md) 
+  [StartQAppSession](API_qapps_StartQAppSession.md) 
+  [StopQAppSession](API_qapps_StopQAppSession.md) 
+  [TagResource](API_qapps_TagResource.md) 
+  [UntagResource](API_qapps_UntagResource.md) 
+  [UpdateLibraryItem](API_qapps_UpdateLibraryItem.md) 
+  [UpdateLibraryItemMetadata](API_qapps_UpdateLibraryItemMetadata.md) 
+  [UpdateQApp](API_qapps_UpdateQApp.md) 
+  [UpdateQAppPermissions](API_qapps_UpdateQAppPermissions.md) 
+  [UpdateQAppSession](API_qapps_UpdateQAppSession.md) 
+  [UpdateQAppSessionMetadata](API_qapps_UpdateQAppSessionMetadata.md) 

# AssociateLibraryItemReview
<a name="API_qapps_AssociateLibraryItemReview"></a>

Associates a rating or review for a library item with the user submitting the request. This increments the rating count for the specified library item.

## Request Syntax
<a name="API_qapps_AssociateLibraryItemReview_RequestSyntax"></a>

```
POST /catalog.associateItemRating HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "libraryItemId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_AssociateLibraryItemReview_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_AssociateLibraryItemReview_RequestSyntax) **   <a name="qbusiness-qapps_AssociateLibraryItemReview-request-instanceId"></a>
The unique identifier for the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_AssociateLibraryItemReview_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [libraryItemId](#API_qapps_AssociateLibraryItemReview_RequestSyntax) **   <a name="qbusiness-qapps_AssociateLibraryItemReview-request-libraryItemId"></a>
The unique identifier of the library item to associate the review with.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_AssociateLibraryItemReview_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_AssociateLibraryItemReview_ResponseElements"></a>

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

## Errors
<a name="API_qapps_AssociateLibraryItemReview_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_AssociateLibraryItemReview_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/AssociateLibraryItemReview) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/AssociateLibraryItemReview) 

# AssociateQAppWithUser
<a name="API_qapps_AssociateQAppWithUser"></a>

This operation creates a link between the user's identity calling the operation and a specific Q App. This is useful to mark the Q App as a *favorite* for the user if the user doesn't own the Amazon Q App so they can still run it and see it in their inventory of Q Apps.

## Request Syntax
<a name="API_qapps_AssociateQAppWithUser_RequestSyntax"></a>

```
POST /apps.install HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_AssociateQAppWithUser_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_AssociateQAppWithUser_RequestSyntax) **   <a name="qbusiness-qapps_AssociateQAppWithUser-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_AssociateQAppWithUser_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_AssociateQAppWithUser_RequestSyntax) **   <a name="qbusiness-qapps_AssociateQAppWithUser-request-appId"></a>
The ID of the Amazon Q App to associate with the user.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_AssociateQAppWithUser_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_AssociateQAppWithUser_ResponseElements"></a>

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

## Errors
<a name="API_qapps_AssociateQAppWithUser_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_AssociateQAppWithUser_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/AssociateQAppWithUser) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/AssociateQAppWithUser) 

# BatchCreateCategory
<a name="API_qapps_BatchCreateCategory"></a>

Creates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see [Custom labels for Amazon Q Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html).

## Request Syntax
<a name="API_qapps_BatchCreateCategory_RequestSyntax"></a>

```
POST /catalog.createCategories HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "categories": [ 
      { 
         "color": "string",
         "id": "string",
         "title": "string"
      }
   ]
}
```

## URI Request Parameters
<a name="API_qapps_BatchCreateCategory_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_BatchCreateCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchCreateCategory-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_BatchCreateCategory_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [categories](#API_qapps_BatchCreateCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchCreateCategory-request-categories"></a>
The list of category objects to be created  
Type: Array of [BatchCreateCategoryInputCategory](API_qapps_BatchCreateCategoryInputCategory.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.  
Required: Yes

## Response Syntax
<a name="API_qapps_BatchCreateCategory_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_BatchCreateCategory_ResponseElements"></a>

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

## Errors
<a name="API_qapps_BatchCreateCategory_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_BatchCreateCategory_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/BatchCreateCategory) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/BatchCreateCategory) 

# BatchDeleteCategory
<a name="API_qapps_BatchDeleteCategory"></a>

Deletes Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see [Custom labels for Amazon Q Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html).

## Request Syntax
<a name="API_qapps_BatchDeleteCategory_RequestSyntax"></a>

```
POST /catalog.deleteCategories HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "categories": [ "string" ]
}
```

## URI Request Parameters
<a name="API_qapps_BatchDeleteCategory_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_BatchDeleteCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchDeleteCategory-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_BatchDeleteCategory_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [categories](#API_qapps_BatchDeleteCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchDeleteCategory-request-categories"></a>
The list of IDs of the categories to be deleted.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 10 items.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_BatchDeleteCategory_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_BatchDeleteCategory_ResponseElements"></a>

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

## Errors
<a name="API_qapps_BatchDeleteCategory_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_BatchDeleteCategory_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/BatchDeleteCategory) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/BatchDeleteCategory) 

# BatchUpdateCategory
<a name="API_qapps_BatchUpdateCategory"></a>

Updates Categories for the Amazon Q Business application environment instance. Web experience users use Categories to tag and filter library items. For more information, see [Custom labels for Amazon Q Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html).

## Request Syntax
<a name="API_qapps_BatchUpdateCategory_RequestSyntax"></a>

```
POST /catalog.updateCategories HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "categories": [ 
      { 
         "color": "string",
         "id": "string",
         "title": "string"
      }
   ]
}
```

## URI Request Parameters
<a name="API_qapps_BatchUpdateCategory_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_BatchUpdateCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchUpdateCategory-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_BatchUpdateCategory_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [categories](#API_qapps_BatchUpdateCategory_RequestSyntax) **   <a name="qbusiness-qapps_BatchUpdateCategory-request-categories"></a>
The list of categories to be updated with their new values.  
Type: Array of [CategoryInput](API_qapps_CategoryInput.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.  
Required: Yes

## Response Syntax
<a name="API_qapps_BatchUpdateCategory_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_BatchUpdateCategory_ResponseElements"></a>

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

## Errors
<a name="API_qapps_BatchUpdateCategory_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_BatchUpdateCategory_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/BatchUpdateCategory) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/BatchUpdateCategory) 

# CreateLibraryItem
<a name="API_qapps_CreateLibraryItem"></a>

Creates a new library item for an Amazon Q App, allowing it to be discovered and used by other allowed users. 

## Request Syntax
<a name="API_qapps_CreateLibraryItem_RequestSyntax"></a>

```
POST /catalog.createItem HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string",
   "appVersion": number,
   "categories": [ "string" ]
}
```

## URI Request Parameters
<a name="API_qapps_CreateLibraryItem_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_CreateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_CreateLibraryItem_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_CreateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-request-appId"></a>
The unique identifier of the Amazon Q App to publish to the library.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [appVersion](#API_qapps_CreateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-request-appVersion"></a>
The version of the Amazon Q App to publish to the library.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.  
Required: Yes

 ** [categories](#API_qapps_CreateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-request-categories"></a>
The categories to associate with the library item for easier discovery.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 3 items.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_CreateLibraryItem_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "createdAt": "string",
   "createdBy": "string",
   "isVerified": boolean,
   "libraryItemId": "string",
   "ratingCount": number,
   "status": "string",
   "updatedAt": "string",
   "updatedBy": "string"
}
```

## Response Elements
<a name="API_qapps_CreateLibraryItem_ResponseElements"></a>

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

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

 ** [createdAt](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-createdAt"></a>
The date and time the library item was created.  
Type: Timestamp

 ** [createdBy](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-createdBy"></a>
The user who created the library item.  
Type: String

 ** [isVerified](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-isVerified"></a>
Indicates whether the library item has been verified.  
Type: Boolean

 ** [libraryItemId](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-libraryItemId"></a>
The unique identifier of the new library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [ratingCount](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-ratingCount"></a>
The number of ratings the library item has received from users.  
Type: Integer

 ** [status](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-status"></a>
The status of the new library item, such as "Published".  
Type: String

 ** [updatedAt](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-updatedAt"></a>
The date and time the library item was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_CreateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_CreateLibraryItem-response-updatedBy"></a>
The user who last updated the library item.  
Type: String

## Errors
<a name="API_qapps_CreateLibraryItem_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_CreateLibraryItem_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/CreateLibraryItem) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/CreateLibraryItem) 

# CreatePresignedUrl
<a name="API_qapps_CreatePresignedUrl"></a>

Creates a presigned URL for an S3 POST operation to upload a file. You can use this URL to set a default file for a `FileUploadCard` in a Q App definition or to provide a file for a single Q App run. The `scope` parameter determines how the file will be used, either at the app definition level or the app session level.

**Note**  
The IAM permissions are derived from the `qapps:ImportDocument` action. For more information on the IAM policy for Amazon Q Apps, see [IAM permissions for using Amazon Q Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/deploy-q-apps-iam-permissions.html).

## Request Syntax
<a name="API_qapps_CreatePresignedUrl_RequestSyntax"></a>

```
POST /apps.createPresignedUrl HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string",
   "cardId": "string",
   "fileContentsSha256": "string",
   "fileName": "string",
   "scope": "string",
   "sessionId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_CreatePresignedUrl_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_CreatePresignedUrl_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-appId"></a>
The unique identifier of the Q App the file is associated with.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [cardId](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-cardId"></a>
The unique identifier of the card the file is associated with.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [fileContentsSha256](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-fileContentsSha256"></a>
The Base64-encoded SHA-256 digest of the contents of the file to be uploaded.  
Type: String  
Pattern: `[A-Za-z0-9+/]{43}=$|^[A-Za-z0-9+/]{42}==$|^[A-Za-z0-9+/]{44}`   
Required: Yes

 ** [fileName](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-fileName"></a>
The name of the file to be uploaded.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Required: Yes

 ** [scope](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-scope"></a>
Whether the file is associated with a Q App definition or a specific Q App session.  
Type: String  
Valid Values: `APPLICATION | SESSION`   
Required: Yes

 ** [sessionId](#API_qapps_CreatePresignedUrl_RequestSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-request-sessionId"></a>
The unique identifier of the Q App session the file is associated with, if applicable.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: No

## Response Syntax
<a name="API_qapps_CreatePresignedUrl_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "fileId": "string",
   "presignedUrl": "string",
   "presignedUrlExpiration": "string",
   "presignedUrlFields": { 
      "string" : "string" 
   }
}
```

## Response Elements
<a name="API_qapps_CreatePresignedUrl_ResponseElements"></a>

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

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

 ** [fileId](#API_qapps_CreatePresignedUrl_ResponseSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-response-fileId"></a>
The unique identifier assigned to the file to be uploaded.  
Type: String

 ** [presignedUrl](#API_qapps_CreatePresignedUrl_ResponseSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-response-presignedUrl"></a>
The URL for a presigned S3 POST operation used to upload a file.  
Type: String

 ** [presignedUrlExpiration](#API_qapps_CreatePresignedUrl_ResponseSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-response-presignedUrlExpiration"></a>
The date and time that the presigned URL will expire in ISO 8601 format.  
Type: Timestamp

 ** [presignedUrlFields](#API_qapps_CreatePresignedUrl_ResponseSyntax) **   <a name="qbusiness-qapps_CreatePresignedUrl-response-presignedUrlFields"></a>
The form fields to include in the presigned S3 POST operation used to upload a file.  
Type: String to string map

## Errors
<a name="API_qapps_CreatePresignedUrl_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_CreatePresignedUrl_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/CreatePresignedUrl) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/CreatePresignedUrl) 

# CreateQApp
<a name="API_qapps_CreateQApp"></a>

Creates a new Amazon Q App based on the provided definition. The Q App definition specifies the cards and flow of the Q App. This operation also calculates the dependencies between the cards by inspecting the references in the prompts. 

## Request Syntax
<a name="API_qapps_CreateQApp_RequestSyntax"></a>

```
POST /apps.create HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appDefinition": { 
      "cards": [ 
         { ... }
      ],
      "initialPrompt": "string"
   },
   "description": "string",
   "tags": { 
      "string" : "string" 
   },
   "title": "string"
}
```

## URI Request Parameters
<a name="API_qapps_CreateQApp_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_CreateQApp_RequestSyntax) **   <a name="qbusiness-qapps_CreateQApp-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_CreateQApp_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appDefinition](#API_qapps_CreateQApp_RequestSyntax) **   <a name="qbusiness-qapps_CreateQApp-request-appDefinition"></a>
The definition of the new Q App, specifying the cards and flow.  
Type: [AppDefinitionInput](API_qapps_AppDefinitionInput.md) object  
Required: Yes

 ** [description](#API_qapps_CreateQApp_RequestSyntax) **   <a name="qbusiness-qapps_CreateQApp-request-description"></a>
The description of the new Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.  
Required: No

 ** [tags](#API_qapps_CreateQApp_RequestSyntax) **   <a name="qbusiness-qapps_CreateQApp-request-tags"></a>
Optional tags to associate with the new Q App.  
Type: String to string map  
Required: No

 ** [title](#API_qapps_CreateQApp_RequestSyntax) **   <a name="qbusiness-qapps_CreateQApp-request-title"></a>
The title of the new Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Pattern: `[^{}\\"<>]+`   
Required: Yes

## Response Syntax
<a name="API_qapps_CreateQApp_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appArn": "string",
   "appId": "string",
   "appVersion": number,
   "createdAt": "string",
   "createdBy": "string",
   "description": "string",
   "initialPrompt": "string",
   "requiredCapabilities": [ "string" ],
   "status": "string",
   "title": "string",
   "updatedAt": "string",
   "updatedBy": "string"
}
```

## Response Elements
<a name="API_qapps_CreateQApp_ResponseElements"></a>

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

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

 ** [appArn](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-appArn"></a>
The Amazon Resource Name (ARN) of the new Q App.  
Type: String

 ** [appId](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-appId"></a>
The unique identifier of the new Q App.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [appVersion](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-appVersion"></a>
The version of the new Q App.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [createdAt](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-createdAt"></a>
The date and time the Q App was created.  
Type: Timestamp

 ** [createdBy](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-createdBy"></a>
The user who created the Q App.  
Type: String

 ** [description](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-description"></a>
The description of the new Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.

 ** [initialPrompt](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-initialPrompt"></a>
The initial prompt displayed when the Q App is started.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 10000.

 ** [requiredCapabilities](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-requiredCapabilities"></a>
The capabilities required to run the Q App, such as file upload or third-party integrations.  
Type: Array of strings  
Valid Values: `FileUpload | CreatorMode | RetrievalMode | PluginMode` 

 ** [status](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-status"></a>
The status of the new Q App, such as "Created".  
Type: String  
Valid Values: `PUBLISHED | DRAFT | DELETED` 

 ** [title](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-title"></a>
The title of the new Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Pattern: `[^{}\\"<>]+` 

 ** [updatedAt](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-updatedAt"></a>
The date and time the Q App was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_CreateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_CreateQApp-response-updatedBy"></a>
The user who last updated the Q App.  
Type: String

## Errors
<a name="API_qapps_CreateQApp_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** ContentTooLargeException **   
The requested operation could not be completed because the content exceeds the maximum allowed size.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 413

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_CreateQApp_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/CreateQApp) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/CreateQApp) 

# DeleteLibraryItem
<a name="API_qapps_DeleteLibraryItem"></a>

Deletes a library item for an Amazon Q App, removing it from the library so it can no longer be discovered or used by other users.

## Request Syntax
<a name="API_qapps_DeleteLibraryItem_RequestSyntax"></a>

```
POST /catalog.deleteItem HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "libraryItemId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_DeleteLibraryItem_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_DeleteLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_DeleteLibraryItem-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_DeleteLibraryItem_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [libraryItemId](#API_qapps_DeleteLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_DeleteLibraryItem-request-libraryItemId"></a>
The unique identifier of the library item to delete.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_DeleteLibraryItem_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_DeleteLibraryItem_ResponseElements"></a>

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

## Errors
<a name="API_qapps_DeleteLibraryItem_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_DeleteLibraryItem_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/DeleteLibraryItem) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/DeleteLibraryItem) 

# DeleteQApp
<a name="API_qapps_DeleteQApp"></a>

Deletes an Amazon Q App owned by the user. If the Q App was previously published to the library, it is also removed from the library.

## Request Syntax
<a name="API_qapps_DeleteQApp_RequestSyntax"></a>

```
POST /apps.delete HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_DeleteQApp_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_DeleteQApp_RequestSyntax) **   <a name="qbusiness-qapps_DeleteQApp-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_DeleteQApp_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_DeleteQApp_RequestSyntax) **   <a name="qbusiness-qapps_DeleteQApp-request-appId"></a>
The unique identifier of the Q App to delete.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_DeleteQApp_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_DeleteQApp_ResponseElements"></a>

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

## Errors
<a name="API_qapps_DeleteQApp_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_DeleteQApp_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/DeleteQApp) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/DeleteQApp) 

# DescribeQAppPermissions
<a name="API_qapps_DescribeQAppPermissions"></a>

 Describes read permissions for a Amazon Q App in Amazon Q Business application environment instance.

## Request Syntax
<a name="API_qapps_DescribeQAppPermissions_RequestSyntax"></a>

```
GET /apps.describeQAppPermissions?appId=appId HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_DescribeQAppPermissions_RequestParameters"></a>

The request uses the following URI parameters.

 ** [appId](#API_qapps_DescribeQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_DescribeQAppPermissions-request-uri-appId"></a>
The unique identifier of the Amazon Q App for which to retrieve permissions.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [instanceId](#API_qapps_DescribeQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_DescribeQAppPermissions-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_DescribeQAppPermissions_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_DescribeQAppPermissions_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appId": "string",
   "permissions": [ 
      { 
         "action": "string",
         "principal": { 
            "email": "string",
            "userId": "string",
            "userType": "string"
         }
      }
   ],
   "resourceArn": "string"
}
```

## Response Elements
<a name="API_qapps_DescribeQAppPermissions_ResponseElements"></a>

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

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

 ** [appId](#API_qapps_DescribeQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_DescribeQAppPermissions-response-appId"></a>
The unique identifier of the Amazon Q App for which permissions are returned.  
Type: String

 ** [permissions](#API_qapps_DescribeQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_DescribeQAppPermissions-response-permissions"></a>
The list of permissions granted for the Amazon Q App.  
Type: Array of [PermissionOutput](API_qapps_PermissionOutput.md) objects

 ** [resourceArn](#API_qapps_DescribeQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_DescribeQAppPermissions-response-resourceArn"></a>
The Amazon Resource Name (ARN) of the Amazon Q App for which permissions are returned.  
Type: String

## Errors
<a name="API_qapps_DescribeQAppPermissions_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_DescribeQAppPermissions_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/DescribeQAppPermissions) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/DescribeQAppPermissions) 

# DisassociateLibraryItemReview
<a name="API_qapps_DisassociateLibraryItemReview"></a>

Removes a rating or review previously submitted by the user for a library item.

## Request Syntax
<a name="API_qapps_DisassociateLibraryItemReview_RequestSyntax"></a>

```
POST /catalog.disassociateItemRating HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "libraryItemId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_DisassociateLibraryItemReview_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_DisassociateLibraryItemReview_RequestSyntax) **   <a name="qbusiness-qapps_DisassociateLibraryItemReview-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_DisassociateLibraryItemReview_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [libraryItemId](#API_qapps_DisassociateLibraryItemReview_RequestSyntax) **   <a name="qbusiness-qapps_DisassociateLibraryItemReview-request-libraryItemId"></a>
The unique identifier of the library item to remove the review from.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_DisassociateLibraryItemReview_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_DisassociateLibraryItemReview_ResponseElements"></a>

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

## Errors
<a name="API_qapps_DisassociateLibraryItemReview_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_DisassociateLibraryItemReview_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/DisassociateLibraryItemReview) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/DisassociateLibraryItemReview) 

# DisassociateQAppFromUser
<a name="API_qapps_DisassociateQAppFromUser"></a>

Disassociates a Q App from a user removing the user's access to run the Q App.

## Request Syntax
<a name="API_qapps_DisassociateQAppFromUser_RequestSyntax"></a>

```
POST /apps.uninstall HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_DisassociateQAppFromUser_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_DisassociateQAppFromUser_RequestSyntax) **   <a name="qbusiness-qapps_DisassociateQAppFromUser-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_DisassociateQAppFromUser_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_DisassociateQAppFromUser_RequestSyntax) **   <a name="qbusiness-qapps_DisassociateQAppFromUser-request-appId"></a>
The unique identifier of the Q App to disassociate from the user.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_DisassociateQAppFromUser_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_DisassociateQAppFromUser_ResponseElements"></a>

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

## Errors
<a name="API_qapps_DisassociateQAppFromUser_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_DisassociateQAppFromUser_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/DisassociateQAppFromUser) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/DisassociateQAppFromUser) 

# ExportQAppSessionData
<a name="API_qapps_ExportQAppSessionData"></a>

Exports the collected data of a Q App data collection session.

## Request Syntax
<a name="API_qapps_ExportQAppSessionData_RequestSyntax"></a>

```
POST /runtime.exportQAppSessionData HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "sessionId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_ExportQAppSessionData_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_ExportQAppSessionData_RequestSyntax) **   <a name="qbusiness-qapps_ExportQAppSessionData-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_ExportQAppSessionData_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [sessionId](#API_qapps_ExportQAppSessionData_RequestSyntax) **   <a name="qbusiness-qapps_ExportQAppSessionData-request-sessionId"></a>
The unique identifier of the Q App data collection session.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_ExportQAppSessionData_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "csvFileLink": "string",
   "expiresAt": "string",
   "sessionArn": "string"
}
```

## Response Elements
<a name="API_qapps_ExportQAppSessionData_ResponseElements"></a>

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

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

 ** [csvFileLink](#API_qapps_ExportQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ExportQAppSessionData-response-csvFileLink"></a>
The link where the exported Q App session data can be downloaded from.  
Type: String

 ** [expiresAt](#API_qapps_ExportQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ExportQAppSessionData-response-expiresAt"></a>
The date and time when the link for the exported Q App session data expires.  
Type: Timestamp

 ** [sessionArn](#API_qapps_ExportQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ExportQAppSessionData-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the Q App data collection session.  
Type: String

## Errors
<a name="API_qapps_ExportQAppSessionData_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ExportQAppSessionData_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ExportQAppSessionData) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ExportQAppSessionData) 

# GetLibraryItem
<a name="API_qapps_GetLibraryItem"></a>

Retrieves details about a library item for an Amazon Q App, including its metadata, categories, ratings, and usage statistics.

## Request Syntax
<a name="API_qapps_GetLibraryItem_RequestSyntax"></a>

```
GET /catalog.getItem?appId=appId&libraryItemId=libraryItemId HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_GetLibraryItem_RequestParameters"></a>

The request uses the following URI parameters.

 ** [appId](#API_qapps_GetLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-request-uri-appId"></a>
The unique identifier of the Amazon Q App associated with the library item.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [instanceId](#API_qapps_GetLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [libraryItemId](#API_qapps_GetLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-request-uri-libraryItemId"></a>
The unique identifier of the library item to retrieve.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Request Body
<a name="API_qapps_GetLibraryItem_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_GetLibraryItem_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appId": "string",
   "appVersion": number,
   "categories": [ 
      { 
         "appCount": number,
         "color": "string",
         "id": "string",
         "title": "string"
      }
   ],
   "createdAt": "string",
   "createdBy": "string",
   "isRatedByUser": boolean,
   "isVerified": boolean,
   "libraryItemId": "string",
   "ratingCount": number,
   "status": "string",
   "updatedAt": "string",
   "updatedBy": "string",
   "userCount": number
}
```

## Response Elements
<a name="API_qapps_GetLibraryItem_ResponseElements"></a>

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

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

 ** [appId](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-appId"></a>
The unique identifier of the Q App associated with the library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [appVersion](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-appVersion"></a>
The version of the Q App associated with the library item.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [categories](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-categories"></a>
The categories associated with the library item for discovery.  
Type: Array of [Category](API_qapps_Category.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 3 items.

 ** [createdAt](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-createdAt"></a>
The date and time the library item was created.  
Type: Timestamp

 ** [createdBy](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-createdBy"></a>
The user who created the library item.  
Type: String

 ** [isRatedByUser](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-isRatedByUser"></a>
Whether the current user has rated the library item.  
Type: Boolean

 ** [isVerified](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-isVerified"></a>
Indicates whether the library item has been verified.  
Type: Boolean

 ** [libraryItemId](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-libraryItemId"></a>
The unique identifier of the library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [ratingCount](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-ratingCount"></a>
The number of ratings the library item has received from users.  
Type: Integer

 ** [status](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-status"></a>
The status of the library item, such as "Published".  
Type: String

 ** [updatedAt](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-updatedAt"></a>
The date and time the library item was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-updatedBy"></a>
The user who last updated the library item.  
Type: String

 ** [userCount](#API_qapps_GetLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_GetLibraryItem-response-userCount"></a>
The number of users who have associated the Q App with their account.  
Type: Integer

## Errors
<a name="API_qapps_GetLibraryItem_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_GetLibraryItem_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/GetLibraryItem) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/GetLibraryItem) 

# GetQApp
<a name="API_qapps_GetQApp"></a>

Retrieves the full details of an Q App, including its definition specifying the cards and flow.

## Request Syntax
<a name="API_qapps_GetQApp_RequestSyntax"></a>

```
GET /apps.get?appId=appId&appVersion=appVersion HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_GetQApp_RequestParameters"></a>

The request uses the following URI parameters.

 ** [appId](#API_qapps_GetQApp_RequestSyntax) **   <a name="qbusiness-qapps_GetQApp-request-uri-appId"></a>
The unique identifier of the Q App to retrieve.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [appVersion](#API_qapps_GetQApp_RequestSyntax) **   <a name="qbusiness-qapps_GetQApp-request-uri-appVersion"></a>
The version of the Q App.  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [instanceId](#API_qapps_GetQApp_RequestSyntax) **   <a name="qbusiness-qapps_GetQApp-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_GetQApp_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_GetQApp_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appArn": "string",
   "appDefinition": { 
      "appDefinitionVersion": "string",
      "canEdit": boolean,
      "cards": [ 
         { ... }
      ]
   },
   "appId": "string",
   "appVersion": number,
   "createdAt": "string",
   "createdBy": "string",
   "description": "string",
   "initialPrompt": "string",
   "requiredCapabilities": [ "string" ],
   "status": "string",
   "title": "string",
   "updatedAt": "string",
   "updatedBy": "string"
}
```

## Response Elements
<a name="API_qapps_GetQApp_ResponseElements"></a>

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

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

 ** [appArn](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-appArn"></a>
The Amazon Resource Name (ARN) of the Q App.  
Type: String

 ** [appDefinition](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-appDefinition"></a>
The full definition of the Q App, specifying the cards and flow.  
Type: [AppDefinition](API_qapps_AppDefinition.md) object

 ** [appId](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-appId"></a>
The unique identifier of the Q App.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [appVersion](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-appVersion"></a>
The version of the Q App.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [createdAt](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-createdAt"></a>
The date and time the Q App was created.  
Type: Timestamp

 ** [createdBy](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-createdBy"></a>
The user who created the Q App.  
Type: String

 ** [description](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-description"></a>
The description of the Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.

 ** [initialPrompt](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-initialPrompt"></a>
The initial prompt displayed when the Q App is started.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 10000.

 ** [requiredCapabilities](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-requiredCapabilities"></a>
The capabilities required to run the Q App, such as file upload or third-party integrations.  
Type: Array of strings  
Valid Values: `FileUpload | CreatorMode | RetrievalMode | PluginMode` 

 ** [status](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-status"></a>
The status of the Q App.  
Type: String  
Valid Values: `PUBLISHED | DRAFT | DELETED` 

 ** [title](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-title"></a>
The title of the Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Pattern: `[^{}\\"<>]+` 

 ** [updatedAt](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-updatedAt"></a>
The date and time the Q App was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_GetQApp_ResponseSyntax) **   <a name="qbusiness-qapps_GetQApp-response-updatedBy"></a>
The user who last updated the Q App.  
Type: String

## Errors
<a name="API_qapps_GetQApp_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_GetQApp_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/GetQApp) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/GetQApp) 

# GetQAppSession
<a name="API_qapps_GetQAppSession"></a>

Retrieves the current state and results for an active session of an Amazon Q App.

## Request Syntax
<a name="API_qapps_GetQAppSession_RequestSyntax"></a>

```
GET /runtime.getQAppSession?sessionId=sessionId HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_GetQAppSession_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_GetQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_GetQAppSession-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [sessionId](#API_qapps_GetQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_GetQAppSession-request-uri-sessionId"></a>
The unique identifier of the Q App session to retrieve.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Request Body
<a name="API_qapps_GetQAppSession_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_GetQAppSession_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appVersion": number,
   "cardStatus": { 
      "string" : { 
         "currentState": "string",
         "currentValue": "string",
         "submissions": [ 
            { 
               "submissionId": "string",
               "timestamp": "string",
               "value": JSON value
            }
         ]
      }
   },
   "latestPublishedAppVersion": number,
   "sessionArn": "string",
   "sessionId": "string",
   "sessionName": "string",
   "status": "string",
   "userIsHost": boolean
}
```

## Response Elements
<a name="API_qapps_GetQAppSession_ResponseElements"></a>

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

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

 ** [appVersion](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-appVersion"></a>
The version of the Q App used for the session.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [cardStatus](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-cardStatus"></a>
The current status for each card in the Q App session.  
Type: String to [CardStatus](API_qapps_CardStatus.md) object map  
Key Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [latestPublishedAppVersion](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-latestPublishedAppVersion"></a>
The latest published version of the Q App used for the session.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [sessionArn](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the Q App session.  
Type: String

 ** [sessionId](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-sessionId"></a>
The unique identifier of the Q App session.  
Type: String

 ** [sessionName](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-sessionName"></a>
The name of the Q App session.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.

 ** [status](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-status"></a>
The current status of the Q App session.  
Type: String  
Valid Values: `IN_PROGRESS | WAITING | COMPLETED | ERROR` 

 ** [userIsHost](#API_qapps_GetQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSession-response-userIsHost"></a>
Indicates whether the current user is the owner of the Q App data collection session.  
Type: Boolean

## Errors
<a name="API_qapps_GetQAppSession_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_GetQAppSession_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/GetQAppSession) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/GetQAppSession) 

# GetQAppSessionMetadata
<a name="API_qapps_GetQAppSessionMetadata"></a>

Retrieves the current configuration of a Q App session.

## Request Syntax
<a name="API_qapps_GetQAppSessionMetadata_RequestSyntax"></a>

```
GET /runtime.getQAppSessionMetadata?sessionId=sessionId HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_GetQAppSessionMetadata_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_GetQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [sessionId](#API_qapps_GetQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-request-uri-sessionId"></a>
The unique identifier of the Q App session.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Request Body
<a name="API_qapps_GetQAppSessionMetadata_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_GetQAppSessionMetadata_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "sessionArn": "string",
   "sessionId": "string",
   "sessionName": "string",
   "sessionOwner": boolean,
   "sharingConfiguration": { 
      "acceptResponses": boolean,
      "enabled": boolean,
      "revealCards": boolean
   }
}
```

## Response Elements
<a name="API_qapps_GetQAppSessionMetadata_ResponseElements"></a>

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

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

 ** [sessionArn](#API_qapps_GetQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the Q App session.  
Type: String

 ** [sessionId](#API_qapps_GetQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-response-sessionId"></a>
The unique identifier of the Q App session.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [sessionName](#API_qapps_GetQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-response-sessionName"></a>
The name of the Q App session.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.

 ** [sessionOwner](#API_qapps_GetQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-response-sessionOwner"></a>
Indicates whether the current user is the owner of the Q App session.  
Type: Boolean

 ** [sharingConfiguration](#API_qapps_GetQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_GetQAppSessionMetadata-response-sharingConfiguration"></a>
The sharing configuration of the Q App data collection session.  
Type: [SessionSharingConfiguration](API_qapps_SessionSharingConfiguration.md) object

## Errors
<a name="API_qapps_GetQAppSessionMetadata_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_GetQAppSessionMetadata_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/GetQAppSessionMetadata) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/GetQAppSessionMetadata) 

# ImportDocument
<a name="API_qapps_ImportDocument"></a>

Uploads a file that can then be used either as a default in a `FileUploadCard` from Q App definition or as a file that is used inside a single Q App run. The purpose of the document is determined by a scope parameter that indicates whether it is at the app definition level or at the app session level.

## Request Syntax
<a name="API_qapps_ImportDocument_RequestSyntax"></a>

```
POST /apps.importDocument HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string",
   "cardId": "string",
   "fileContentsBase64": "string",
   "fileName": "string",
   "scope": "string",
   "sessionId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_ImportDocument_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_ImportDocument_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-appId"></a>
The unique identifier of the Q App the file is associated with.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [cardId](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-cardId"></a>
The unique identifier of the card the file is associated with.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [fileContentsBase64](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-fileContentsBase64"></a>
The base64-encoded contents of the file to upload.  
Type: String  
Required: Yes

 ** [fileName](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-fileName"></a>
The name of the file being uploaded.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Required: Yes

 ** [scope](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-scope"></a>
Whether the file is associated with a Q App definition or a specific Q App session.  
Type: String  
Valid Values: `APPLICATION | SESSION`   
Required: Yes

 ** [sessionId](#API_qapps_ImportDocument_RequestSyntax) **   <a name="qbusiness-qapps_ImportDocument-request-sessionId"></a>
The unique identifier of the Q App session the file is associated with, if applicable.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: No

## Response Syntax
<a name="API_qapps_ImportDocument_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "fileId": "string"
}
```

## Response Elements
<a name="API_qapps_ImportDocument_ResponseElements"></a>

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

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

 ** [fileId](#API_qapps_ImportDocument_ResponseSyntax) **   <a name="qbusiness-qapps_ImportDocument-response-fileId"></a>
The unique identifier assigned to the uploaded file.  
Type: String

## Errors
<a name="API_qapps_ImportDocument_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ContentTooLargeException **   
The requested operation could not be completed because the content exceeds the maximum allowed size.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 413

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ImportDocument_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ImportDocument) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ImportDocument) 

# ListCategories
<a name="API_qapps_ListCategories"></a>

Lists the categories of a Amazon Q Business application environment instance. For more information, see [Custom labels for Amazon Q Apps](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qapps-custom-labels.html).

## Request Syntax
<a name="API_qapps_ListCategories_RequestSyntax"></a>

```
GET /catalog.listCategories HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_ListCategories_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_ListCategories_RequestSyntax) **   <a name="qbusiness-qapps_ListCategories-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_ListCategories_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_ListCategories_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "categories": [ 
      { 
         "appCount": number,
         "color": "string",
         "id": "string",
         "title": "string"
      }
   ]
}
```

## Response Elements
<a name="API_qapps_ListCategories_ResponseElements"></a>

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

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

 ** [categories](#API_qapps_ListCategories_ResponseSyntax) **   <a name="qbusiness-qapps_ListCategories-response-categories"></a>
The categories of a Amazon Q Business application environment instance.  
Type: Array of [Category](API_qapps_Category.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 10 items.

## Errors
<a name="API_qapps_ListCategories_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ListCategories_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ListCategories) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ListCategories) 

# ListLibraryItems
<a name="API_qapps_ListLibraryItems"></a>

Lists the library items for Amazon Q Apps that are published and available for users in your AWS account.

## Request Syntax
<a name="API_qapps_ListLibraryItems_RequestSyntax"></a>

```
GET /catalog.list?categoryId=categoryId&limit=limit&nextToken=nextToken HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_ListLibraryItems_RequestParameters"></a>

The request uses the following URI parameters.

 ** [categoryId](#API_qapps_ListLibraryItems_RequestSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-request-uri-categoryId"></a>
Optional category to filter the library items by.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [instanceId](#API_qapps_ListLibraryItems_RequestSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [limit](#API_qapps_ListLibraryItems_RequestSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-request-uri-limit"></a>
The maximum number of library items to return in the response.  
Valid Range: Minimum value of 1. Maximum value of 100.

 ** [nextToken](#API_qapps_ListLibraryItems_RequestSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-request-uri-nextToken"></a>
The token to request the next page of results.  
Length Constraints: Minimum length of 0. Maximum length of 300.

## Request Body
<a name="API_qapps_ListLibraryItems_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_ListLibraryItems_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "libraryItems": [ 
      { 
         "appId": "string",
         "appVersion": number,
         "categories": [ 
            { 
               "appCount": number,
               "color": "string",
               "id": "string",
               "title": "string"
            }
         ],
         "createdAt": "string",
         "createdBy": "string",
         "isRatedByUser": boolean,
         "isVerified": boolean,
         "libraryItemId": "string",
         "ratingCount": number,
         "status": "string",
         "updatedAt": "string",
         "updatedBy": "string",
         "userCount": number
      }
   ],
   "nextToken": "string"
}
```

## Response Elements
<a name="API_qapps_ListLibraryItems_ResponseElements"></a>

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

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

 ** [libraryItems](#API_qapps_ListLibraryItems_ResponseSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-response-libraryItems"></a>
The list of library items meeting the request criteria.  
Type: Array of [LibraryItemMember](API_qapps_LibraryItemMember.md) objects

 ** [nextToken](#API_qapps_ListLibraryItems_ResponseSyntax) **   <a name="qbusiness-qapps_ListLibraryItems-response-nextToken"></a>
The token to use to request the next page of results.  
Type: String

## Errors
<a name="API_qapps_ListLibraryItems_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ListLibraryItems_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ListLibraryItems) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ListLibraryItems) 

# ListQApps
<a name="API_qapps_ListQApps"></a>

Lists the Amazon Q Apps owned by or associated with the user either because they created it or because they used it from the library in the past. The user identity is extracted from the credentials used to invoke this operation..

## Request Syntax
<a name="API_qapps_ListQApps_RequestSyntax"></a>

```
GET /apps.list?limit=limit&nextToken=nextToken HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_ListQApps_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_ListQApps_RequestSyntax) **   <a name="qbusiness-qapps_ListQApps-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [limit](#API_qapps_ListQApps_RequestSyntax) **   <a name="qbusiness-qapps_ListQApps-request-uri-limit"></a>
The maximum number of Q Apps to return in the response.  
Valid Range: Minimum value of 1. Maximum value of 100.

 ** [nextToken](#API_qapps_ListQApps_RequestSyntax) **   <a name="qbusiness-qapps_ListQApps-request-uri-nextToken"></a>
The token to request the next page of results.  
Length Constraints: Minimum length of 0. Maximum length of 300.

## Request Body
<a name="API_qapps_ListQApps_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_ListQApps_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "apps": [ 
      { 
         "appArn": "string",
         "appId": "string",
         "canEdit": boolean,
         "createdAt": "string",
         "description": "string",
         "isVerified": boolean,
         "status": "string",
         "title": "string"
      }
   ],
   "nextToken": "string"
}
```

## Response Elements
<a name="API_qapps_ListQApps_ResponseElements"></a>

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

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

 ** [apps](#API_qapps_ListQApps_ResponseSyntax) **   <a name="qbusiness-qapps_ListQApps-response-apps"></a>
The list of Amazon Q Apps meeting the request criteria.  
Type: Array of [UserAppItem](API_qapps_UserAppItem.md) objects

 ** [nextToken](#API_qapps_ListQApps_ResponseSyntax) **   <a name="qbusiness-qapps_ListQApps-response-nextToken"></a>
The token to use to request the next page of results.  
Type: String

## Errors
<a name="API_qapps_ListQApps_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ListQApps_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ListQApps) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ListQApps) 

# ListQAppSessionData
<a name="API_qapps_ListQAppSessionData"></a>

Lists the collected data of a Q App data collection session.

## Request Syntax
<a name="API_qapps_ListQAppSessionData_RequestSyntax"></a>

```
GET /runtime.listQAppSessionData?sessionId=sessionId HTTP/1.1
instance-id: instanceId
```

## URI Request Parameters
<a name="API_qapps_ListQAppSessionData_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_ListQAppSessionData_RequestSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

 ** [sessionId](#API_qapps_ListQAppSessionData_RequestSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-request-uri-sessionId"></a>
The unique identifier of the Q App data collection session.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Request Body
<a name="API_qapps_ListQAppSessionData_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_ListQAppSessionData_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "nextToken": "string",
   "sessionArn": "string",
   "sessionData": [ 
      { 
         "cardId": "string",
         "submissionId": "string",
         "timestamp": "string",
         "user": { 
            "userId": "string"
         },
         "value": JSON value
      }
   ],
   "sessionId": "string"
}
```

## Response Elements
<a name="API_qapps_ListQAppSessionData_ResponseElements"></a>

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

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

 ** [nextToken](#API_qapps_ListQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-response-nextToken"></a>
 The pagination token that indicates the next set of results to retrieve.  
Type: String

 ** [sessionArn](#API_qapps_ListQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the Q App data collection session.  
Type: String

 ** [sessionData](#API_qapps_ListQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-response-sessionData"></a>
The collected responses of a Q App session.  
Type: Array of [QAppSessionData](API_qapps_QAppSessionData.md) objects

 ** [sessionId](#API_qapps_ListQAppSessionData_ResponseSyntax) **   <a name="qbusiness-qapps_ListQAppSessionData-response-sessionId"></a>
The unique identifier of the Q App data collection session.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

## Errors
<a name="API_qapps_ListQAppSessionData_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ListQAppSessionData_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ListQAppSessionData) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ListQAppSessionData) 

# ListTagsForResource
<a name="API_qapps_ListTagsForResource"></a>

Lists the tags associated with an Amazon Q Apps resource.

## Request Syntax
<a name="API_qapps_ListTagsForResource_RequestSyntax"></a>

```
GET /tags/resourceARN HTTP/1.1
```

## URI Request Parameters
<a name="API_qapps_ListTagsForResource_RequestParameters"></a>

The request uses the following URI parameters.

 ** [resourceARN](#API_qapps_ListTagsForResource_RequestSyntax) **   <a name="qbusiness-qapps_ListTagsForResource-request-uri-resourceARN"></a>
The Amazon Resource Name (ARN) of the resource whose tags should be listed.  
Length Constraints: Minimum length of 1. Maximum length of 1011.  
Required: Yes

## Request Body
<a name="API_qapps_ListTagsForResource_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_ListTagsForResource_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "tags": { 
      "string" : "string" 
   }
}
```

## Response Elements
<a name="API_qapps_ListTagsForResource_ResponseElements"></a>

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

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

 ** [tags](#API_qapps_ListTagsForResource_ResponseSyntax) **   <a name="qbusiness-qapps_ListTagsForResource-response-tags"></a>
The list of tags that are assigned to the resource.  
Type: String to string map  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Value Length Constraints: Minimum length of 0. Maximum length of 256.

## Errors
<a name="API_qapps_ListTagsForResource_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_ListTagsForResource_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/ListTagsForResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/ListTagsForResource) 

# PredictQApp
<a name="API_qapps_PredictQApp"></a>

Generates an Amazon Q App definition based on either a conversation or a problem statement provided as input.The resulting app definition can be used to call `CreateQApp`. This API doesn't create Amazon Q Apps directly.

## Request Syntax
<a name="API_qapps_PredictQApp_RequestSyntax"></a>

```
POST /apps.predictQApp HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "options": { ... }
}
```

## URI Request Parameters
<a name="API_qapps_PredictQApp_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_PredictQApp_RequestSyntax) **   <a name="qbusiness-qapps_PredictQApp-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_PredictQApp_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [options](#API_qapps_PredictQApp_RequestSyntax) **   <a name="qbusiness-qapps_PredictQApp-request-options"></a>
The input to generate the Q App definition from, either a conversation or problem statement.  
Type: [PredictQAppInputOptions](API_qapps_PredictQAppInputOptions.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: No

## Response Syntax
<a name="API_qapps_PredictQApp_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "app": { 
      "appDefinition": { 
         "cards": [ 
            { ... }
         ],
         "initialPrompt": "string"
      },
      "description": "string",
      "title": "string"
   },
   "problemStatement": "string"
}
```

## Response Elements
<a name="API_qapps_PredictQApp_ResponseElements"></a>

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

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

 ** [app](#API_qapps_PredictQApp_ResponseSyntax) **   <a name="qbusiness-qapps_PredictQApp-response-app"></a>
The generated Q App definition.  
Type: [PredictAppDefinition](API_qapps_PredictAppDefinition.md) object

 ** [problemStatement](#API_qapps_PredictQApp_ResponseSyntax) **   <a name="qbusiness-qapps_PredictQApp-response-problemStatement"></a>
The problem statement extracted from the input conversation, if provided.  
Type: String

## Errors
<a name="API_qapps_PredictQApp_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_PredictQApp_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/PredictQApp) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/PredictQApp) 

# StartQAppSession
<a name="API_qapps_StartQAppSession"></a>

Starts a new session for an Amazon Q App, allowing inputs to be provided and the app to be run.

**Note**  
Each Q App session will be condensed into a single conversation in the web experience.

## Request Syntax
<a name="API_qapps_StartQAppSession_RequestSyntax"></a>

```
POST /runtime.startQAppSession HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string",
   "appVersion": number,
   "initialValues": [ 
      { 
         "cardId": "string",
         "submissionMutation": { 
            "mutationType": "string",
            "submissionId": "string"
         },
         "value": "string"
      }
   ],
   "sessionId": "string",
   "tags": { 
      "string" : "string" 
   }
}
```

## URI Request Parameters
<a name="API_qapps_StartQAppSession_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_StartQAppSession_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-appId"></a>
The unique identifier of the Q App to start a session for.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [appVersion](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-appVersion"></a>
The version of the Q App to use for the session.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.  
Required: Yes

 ** [initialValues](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-initialValues"></a>
Optional initial input values to provide for the Q App session.  
Type: Array of [CardValue](API_qapps_CardValue.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 20 items.  
Required: No

 ** [sessionId](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-sessionId"></a>
The unique identifier of the a Q App session.  
Type: String  
Required: No

 ** [tags](#API_qapps_StartQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StartQAppSession-request-tags"></a>
Optional tags to associate with the new Q App session.  
Type: String to string map  
Required: No

## Response Syntax
<a name="API_qapps_StartQAppSession_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "sessionArn": "string",
   "sessionId": "string"
}
```

## Response Elements
<a name="API_qapps_StartQAppSession_ResponseElements"></a>

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

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

 ** [sessionArn](#API_qapps_StartQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_StartQAppSession-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the new Q App session.  
Type: String

 ** [sessionId](#API_qapps_StartQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_StartQAppSession-response-sessionId"></a>
The unique identifier of the new or retrieved Q App session.  
Type: String

## Errors
<a name="API_qapps_StartQAppSession_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_StartQAppSession_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/StartQAppSession) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/StartQAppSession) 

# StopQAppSession
<a name="API_qapps_StopQAppSession"></a>

Stops an active session for an Amazon Q App.This deletes all data related to the session and makes it invalid for future uses. The results of the session will be persisted as part of the conversation.

## Request Syntax
<a name="API_qapps_StopQAppSession_RequestSyntax"></a>

```
POST /runtime.deleteMiniAppRun HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "sessionId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_StopQAppSession_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_StopQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StopQAppSession-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_StopQAppSession_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [sessionId](#API_qapps_StopQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_StopQAppSession-request-sessionId"></a>
The unique identifier of the Q App session to stop.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_StopQAppSession_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_StopQAppSession_ResponseElements"></a>

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

## Errors
<a name="API_qapps_StopQAppSession_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_StopQAppSession_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/StopQAppSession) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/StopQAppSession) 

# TagResource
<a name="API_qapps_TagResource"></a>

Associates tags with an Amazon Q Apps resource.

## Request Syntax
<a name="API_qapps_TagResource_RequestSyntax"></a>

```
POST /tags/resourceARN HTTP/1.1
Content-type: application/json

{
   "tags": { 
      "string" : "string" 
   }
}
```

## URI Request Parameters
<a name="API_qapps_TagResource_RequestParameters"></a>

The request uses the following URI parameters.

 ** [resourceARN](#API_qapps_TagResource_RequestSyntax) **   <a name="qbusiness-qapps_TagResource-request-uri-resourceARN"></a>
The Amazon Resource Name (ARN) of the resource to tag.  
Length Constraints: Minimum length of 1. Maximum length of 1011.  
Required: Yes

## Request Body
<a name="API_qapps_TagResource_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [tags](#API_qapps_TagResource_RequestSyntax) **   <a name="qbusiness-qapps_TagResource-request-tags"></a>
The tags to associate with the resource.  
Type: String to string map  
Key Length Constraints: Minimum length of 1. Maximum length of 128.  
Value Length Constraints: Minimum length of 0. Maximum length of 256.  
Required: Yes

## Response Syntax
<a name="API_qapps_TagResource_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_TagResource_ResponseElements"></a>

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

## Errors
<a name="API_qapps_TagResource_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_TagResource_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/TagResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/TagResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/TagResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/TagResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/TagResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/TagResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/TagResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/TagResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/TagResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/TagResource) 

# UntagResource
<a name="API_qapps_UntagResource"></a>

Disassociates tags from an Amazon Q Apps resource.

## Request Syntax
<a name="API_qapps_UntagResource_RequestSyntax"></a>

```
DELETE /tags/resourceARN?tagKeys=tagKeys HTTP/1.1
```

## URI Request Parameters
<a name="API_qapps_UntagResource_RequestParameters"></a>

The request uses the following URI parameters.

 ** [resourceARN](#API_qapps_UntagResource_RequestSyntax) **   <a name="qbusiness-qapps_UntagResource-request-uri-resourceARN"></a>
The Amazon Resource Name (ARN) of the resource to disassociate the tag from.  
Length Constraints: Minimum length of 1. Maximum length of 1011.  
Required: Yes

 ** [tagKeys](#API_qapps_UntagResource_RequestSyntax) **   <a name="qbusiness-qapps_UntagResource-request-uri-tagKeys"></a>
The keys of the tags to disassociate from the resource.  
Array Members: Minimum number of 0 items. Maximum number of 200 items.  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: Yes

## Request Body
<a name="API_qapps_UntagResource_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_qapps_UntagResource_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_UntagResource_ResponseElements"></a>

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

## Errors
<a name="API_qapps_UntagResource_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UntagResource_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UntagResource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UntagResource) 

# UpdateLibraryItem
<a name="API_qapps_UpdateLibraryItem"></a>

Updates the library item for an Amazon Q App.

## Request Syntax
<a name="API_qapps_UpdateLibraryItem_RequestSyntax"></a>

```
POST /catalog.updateItem HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "categories": [ "string" ],
   "libraryItemId": "string",
   "status": "string"
}
```

## URI Request Parameters
<a name="API_qapps_UpdateLibraryItem_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateLibraryItem_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [categories](#API_qapps_UpdateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-request-categories"></a>
The new categories to associate with the library item.  
Type: Array of strings  
Array Members: Minimum number of 0 items. Maximum number of 3 items.  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: No

 ** [libraryItemId](#API_qapps_UpdateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-request-libraryItemId"></a>
The unique identifier of the library item to update.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [status](#API_qapps_UpdateLibraryItem_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-request-status"></a>
The new status to set for the library item, such as "Published" or "Hidden".  
Type: String  
Valid Values: `PUBLISHED | DISABLED`   
Required: No

## Response Syntax
<a name="API_qapps_UpdateLibraryItem_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appId": "string",
   "appVersion": number,
   "categories": [ 
      { 
         "appCount": number,
         "color": "string",
         "id": "string",
         "title": "string"
      }
   ],
   "createdAt": "string",
   "createdBy": "string",
   "isRatedByUser": boolean,
   "isVerified": boolean,
   "libraryItemId": "string",
   "ratingCount": number,
   "status": "string",
   "updatedAt": "string",
   "updatedBy": "string",
   "userCount": number
}
```

## Response Elements
<a name="API_qapps_UpdateLibraryItem_ResponseElements"></a>

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

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

 ** [appId](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-appId"></a>
The unique identifier of the Q App associated with the library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [appVersion](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-appVersion"></a>
The version of the Q App associated with the library item.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [categories](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-categories"></a>
The categories associated with the updated library item.  
Type: Array of [Category](API_qapps_Category.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 3 items.

 ** [createdAt](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-createdAt"></a>
The date and time the library item was originally created.  
Type: Timestamp

 ** [createdBy](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-createdBy"></a>
The user who originally created the library item.  
Type: String

 ** [isRatedByUser](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-isRatedByUser"></a>
Whether the current user has rated the library item.  
Type: Boolean

 ** [isVerified](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-isVerified"></a>
Indicates whether the library item has been verified.  
Type: Boolean

 ** [libraryItemId](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-libraryItemId"></a>
The unique identifier of the updated library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [ratingCount](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-ratingCount"></a>
The number of ratings the library item has received.  
Type: Integer

 ** [status](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-status"></a>
The new status of the updated library item.  
Type: String

 ** [updatedAt](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-updatedAt"></a>
The date and time the library item was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-updatedBy"></a>
The user who last updated the library item.  
Type: String

 ** [userCount](#API_qapps_UpdateLibraryItem_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItem-response-userCount"></a>
The number of users who have the associated Q App.  
Type: Integer

## Errors
<a name="API_qapps_UpdateLibraryItem_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateLibraryItem_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateLibraryItem) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateLibraryItem) 

# UpdateLibraryItemMetadata
<a name="API_qapps_UpdateLibraryItemMetadata"></a>

Updates the verification status of a library item for an Amazon Q App.

## Request Syntax
<a name="API_qapps_UpdateLibraryItemMetadata_RequestSyntax"></a>

```
POST /catalog.updateItemMetadata HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "isVerified": boolean,
   "libraryItemId": "string"
}
```

## URI Request Parameters
<a name="API_qapps_UpdateLibraryItemMetadata_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateLibraryItemMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItemMetadata-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateLibraryItemMetadata_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [isVerified](#API_qapps_UpdateLibraryItemMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItemMetadata-request-isVerified"></a>
The verification status of the library item  
Type: Boolean  
Required: No

 ** [libraryItemId](#API_qapps_UpdateLibraryItemMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateLibraryItemMetadata-request-libraryItemId"></a>
The unique identifier of the updated library item.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

## Response Syntax
<a name="API_qapps_UpdateLibraryItemMetadata_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_qapps_UpdateLibraryItemMetadata_ResponseElements"></a>

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

## Errors
<a name="API_qapps_UpdateLibraryItemMetadata_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ConflictException **   
The requested operation could not be completed due to a conflict with the current state of the resource.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 409

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateLibraryItemMetadata_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateLibraryItemMetadata) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateLibraryItemMetadata) 

# UpdateQApp
<a name="API_qapps_UpdateQApp"></a>

Updates an existing Amazon Q App, allowing modifications to its title, description, and definition.

## Request Syntax
<a name="API_qapps_UpdateQApp_RequestSyntax"></a>

```
POST /apps.update HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appDefinition": { 
      "cards": [ 
         { ... }
      ],
      "initialPrompt": "string"
   },
   "appId": "string",
   "description": "string",
   "title": "string"
}
```

## URI Request Parameters
<a name="API_qapps_UpdateQApp_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateQApp_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQApp-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateQApp_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appDefinition](#API_qapps_UpdateQApp_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQApp-request-appDefinition"></a>
The new definition specifying the cards and flow for the Q App.  
Type: [AppDefinitionInput](API_qapps_AppDefinitionInput.md) object  
Required: No

 ** [appId](#API_qapps_UpdateQApp_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQApp-request-appId"></a>
The unique identifier of the Q App to update.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [description](#API_qapps_UpdateQApp_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQApp-request-description"></a>
The new description for the Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.  
Required: No

 ** [title](#API_qapps_UpdateQApp_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQApp-request-title"></a>
The new title for the Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Pattern: `[^{}\\"<>]+`   
Required: No

## Response Syntax
<a name="API_qapps_UpdateQApp_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appArn": "string",
   "appId": "string",
   "appVersion": number,
   "createdAt": "string",
   "createdBy": "string",
   "description": "string",
   "initialPrompt": "string",
   "requiredCapabilities": [ "string" ],
   "status": "string",
   "title": "string",
   "updatedAt": "string",
   "updatedBy": "string"
}
```

## Response Elements
<a name="API_qapps_UpdateQApp_ResponseElements"></a>

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

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

 ** [appArn](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-appArn"></a>
The Amazon Resource Name (ARN) of the updated Q App.  
Type: String

 ** [appId](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-appId"></a>
The unique identifier of the updated Q App.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [appVersion](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-appVersion"></a>
The new version of the updated Q App.  
Type: Integer  
Valid Range: Minimum value of 0. Maximum value of 2147483647.

 ** [createdAt](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-createdAt"></a>
The date and time the Q App was originally created.  
Type: Timestamp

 ** [createdBy](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-createdBy"></a>
The user who originally created the Q App.  
Type: String

 ** [description](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-description"></a>
The new description of the updated Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.

 ** [initialPrompt](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-initialPrompt"></a>
The initial prompt for the updated Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 10000.

 ** [requiredCapabilities](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-requiredCapabilities"></a>
The capabilities required for the updated Q App.  
Type: Array of strings  
Valid Values: `FileUpload | CreatorMode | RetrievalMode | PluginMode` 

 ** [status](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-status"></a>
The status of the updated Q App.  
Type: String  
Valid Values: `PUBLISHED | DRAFT | DELETED` 

 ** [title](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-title"></a>
The new title of the updated Q App.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Pattern: `[^{}\\"<>]+` 

 ** [updatedAt](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-updatedAt"></a>
The date and time the Q App was last updated.  
Type: Timestamp

 ** [updatedBy](#API_qapps_UpdateQApp_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQApp-response-updatedBy"></a>
The user who last updated the Q App.  
Type: String

## Errors
<a name="API_qapps_UpdateQApp_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** ContentTooLargeException **   
The requested operation could not be completed because the content exceeds the maximum allowed size.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 413

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateQApp_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateQApp) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateQApp) 

# UpdateQAppPermissions
<a name="API_qapps_UpdateQAppPermissions"></a>

Updates read permissions for a Amazon Q App in Amazon Q Business application environment instance.

## Request Syntax
<a name="API_qapps_UpdateQAppPermissions_RequestSyntax"></a>

```
POST /apps.updateQAppPermissions HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "appId": "string",
   "grantPermissions": [ 
      { 
         "action": "string",
         "principal": "string"
      }
   ],
   "revokePermissions": [ 
      { 
         "action": "string",
         "principal": "string"
      }
   ]
}
```

## URI Request Parameters
<a name="API_qapps_UpdateQAppPermissions_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateQAppPermissions_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [appId](#API_qapps_UpdateQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-request-appId"></a>
The unique identifier of the Amazon Q App for which permissions are being updated.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [grantPermissions](#API_qapps_UpdateQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-request-grantPermissions"></a>
The list of permissions to grant for the Amazon Q App.  
Type: Array of [PermissionInput](API_qapps_PermissionInput.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 100 items.  
Required: No

 ** [revokePermissions](#API_qapps_UpdateQAppPermissions_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-request-revokePermissions"></a>
The list of permissions to revoke for the Amazon Q App.  
Type: Array of [PermissionInput](API_qapps_PermissionInput.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 100 items.  
Required: No

## Response Syntax
<a name="API_qapps_UpdateQAppPermissions_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "appId": "string",
   "permissions": [ 
      { 
         "action": "string",
         "principal": { 
            "email": "string",
            "userId": "string",
            "userType": "string"
         }
      }
   ],
   "resourceArn": "string"
}
```

## Response Elements
<a name="API_qapps_UpdateQAppPermissions_ResponseElements"></a>

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

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

 ** [appId](#API_qapps_UpdateQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-response-appId"></a>
The unique identifier of the Amazon Q App for which permissions were updated.  
Type: String

 ** [permissions](#API_qapps_UpdateQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-response-permissions"></a>
The updated list of permissions for the Amazon Q App.  
Type: Array of [PermissionOutput](API_qapps_PermissionOutput.md) objects

 ** [resourceArn](#API_qapps_UpdateQAppPermissions_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppPermissions-response-resourceArn"></a>
The Amazon Resource Name (ARN) of the Amazon Q App for which permissions were updated.  
Type: String

## Errors
<a name="API_qapps_UpdateQAppPermissions_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateQAppPermissions_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateQAppPermissions) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateQAppPermissions) 

# UpdateQAppSession
<a name="API_qapps_UpdateQAppSession"></a>

Updates the session for a given Q App `sessionId`. This is only valid when at least one card of the session is in the `WAITING` state. Data for each `WAITING` card can be provided as input. If inputs are not provided, the call will be accepted but session will not move forward. Inputs for cards that are not in the `WAITING` status will be ignored.

## Request Syntax
<a name="API_qapps_UpdateQAppSession_RequestSyntax"></a>

```
POST /runtime.updateQAppSession HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "sessionId": "string",
   "values": [ 
      { 
         "cardId": "string",
         "submissionMutation": { 
            "mutationType": "string",
            "submissionId": "string"
         },
         "value": "string"
      }
   ]
}
```

## URI Request Parameters
<a name="API_qapps_UpdateQAppSession_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSession-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateQAppSession_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [sessionId](#API_qapps_UpdateQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSession-request-sessionId"></a>
The unique identifier of the Q App session to provide input for.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [values](#API_qapps_UpdateQAppSession_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSession-request-values"></a>
The input values to provide for the current state of the Q App session.  
Type: Array of [CardValue](API_qapps_CardValue.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 20 items.  
Required: No

## Response Syntax
<a name="API_qapps_UpdateQAppSession_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "sessionArn": "string",
   "sessionId": "string"
}
```

## Response Elements
<a name="API_qapps_UpdateQAppSession_ResponseElements"></a>

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

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

 ** [sessionArn](#API_qapps_UpdateQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSession-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the updated Q App session.  
Type: String

 ** [sessionId](#API_qapps_UpdateQAppSession_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSession-response-sessionId"></a>
The unique identifier of the updated Q App session.  
Type: String

## Errors
<a name="API_qapps_UpdateQAppSession_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateQAppSession_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateQAppSession) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateQAppSession) 

# UpdateQAppSessionMetadata
<a name="API_qapps_UpdateQAppSessionMetadata"></a>

Updates the configuration metadata of a session for a given Q App `sessionId`.

## Request Syntax
<a name="API_qapps_UpdateQAppSessionMetadata_RequestSyntax"></a>

```
POST /runtime.updateQAppSessionMetadata HTTP/1.1
instance-id: instanceId
Content-type: application/json

{
   "sessionId": "string",
   "sessionName": "string",
   "sharingConfiguration": { 
      "acceptResponses": boolean,
      "enabled": boolean,
      "revealCards": boolean
   }
}
```

## URI Request Parameters
<a name="API_qapps_UpdateQAppSessionMetadata_RequestParameters"></a>

The request uses the following URI parameters.

 ** [instanceId](#API_qapps_UpdateQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-request-instanceId"></a>
The unique identifier of the Amazon Q Business application environment instance.  
Required: Yes

## Request Body
<a name="API_qapps_UpdateQAppSessionMetadata_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [sessionId](#API_qapps_UpdateQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-request-sessionId"></a>
The unique identifier of the Q App session to update configuration for.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}`   
Required: Yes

 ** [sessionName](#API_qapps_UpdateQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-request-sessionName"></a>
The new name for the Q App session.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.  
Required: No

 ** [sharingConfiguration](#API_qapps_UpdateQAppSessionMetadata_RequestSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-request-sharingConfiguration"></a>
The new sharing configuration for the Q App data collection session.  
Type: [SessionSharingConfiguration](API_qapps_SessionSharingConfiguration.md) object  
Required: Yes

## Response Syntax
<a name="API_qapps_UpdateQAppSessionMetadata_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "sessionArn": "string",
   "sessionId": "string",
   "sessionName": "string",
   "sharingConfiguration": { 
      "acceptResponses": boolean,
      "enabled": boolean,
      "revealCards": boolean
   }
}
```

## Response Elements
<a name="API_qapps_UpdateQAppSessionMetadata_ResponseElements"></a>

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

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

 ** [sessionArn](#API_qapps_UpdateQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-response-sessionArn"></a>
The Amazon Resource Name (ARN) of the updated Q App session.  
Type: String

 ** [sessionId](#API_qapps_UpdateQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-response-sessionId"></a>
The unique identifier of the updated Q App session.  
Type: String  
Pattern: `[\da-f]{8}-[\da-f]{4}-[45][\da-f]{3}-[89ABab][\da-f]{3}-[\da-f]{12}` 

 ** [sessionName](#API_qapps_UpdateQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-response-sessionName"></a>
The new name of the updated Q App session.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 100.

 ** [sharingConfiguration](#API_qapps_UpdateQAppSessionMetadata_ResponseSyntax) **   <a name="qbusiness-qapps_UpdateQAppSessionMetadata-response-sharingConfiguration"></a>
The new sharing configuration of the updated Q App data collection session.  
Type: [SessionSharingConfiguration](API_qapps_SessionSharingConfiguration.md) object

## Errors
<a name="API_qapps_UpdateQAppSessionMetadata_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The client is not authorized to perform the requested operation.  
HTTP Status Code: 403

 ** InternalServerException **   
An internal service error occurred while processing the request.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource could not be found.    
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource
HTTP Status Code: 404

 ** ServiceQuotaExceededException **   
The requested operation could not be completed because it would exceed the service's quota or limit.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** resourceId **   
The unique identifier of the resource  
 ** resourceType **   
The type of the resource  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 402

 ** ThrottlingException **   
The requested operation could not be completed because too many requests were sent at once. Wait a bit and try again later.    
 ** quotaCode **   
The code of the quota that was exceeded  
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the operation  
 ** serviceCode **   
The code for the service where the quota was exceeded
HTTP Status Code: 429

 ** UnauthorizedException **   
The client is not authenticated or authorized to perform the requested operation.  
HTTP Status Code: 401

 ** ValidationException **   
The input failed to satisfy the constraints specified by the service.  
HTTP Status Code: 400

## See Also
<a name="API_qapps_UpdateQAppSessionMetadata_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/qapps-2023-11-27/UpdateQAppSessionMetadata) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/qapps-2023-11-27/UpdateQAppSessionMetadata) 