

# CancelChangeSet
<a name="API_CancelChangeSet"></a>

Used to cancel an open change request. Must be sent before the status of the request changes to `APPLYING`, the final stage of completing your change request. You can describe a change during the 60-day request history retention period for API calls.

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

```
PATCH /CancelChangeSet?catalog=Catalog&changeSetId=ChangeSetId HTTP/1.1
```

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

The request uses the following URI parameters.

 ** [Catalog](#API_CancelChangeSet_RequestSyntax) **   <a name="AWSMarketplaceService-CancelChangeSet-request-uri-Catalog"></a>
Required. The catalog related to the request. Fixed value: `AWSMarketplace`.  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `^[a-zA-Z]+$`   
Required: Yes

 ** [ChangeSetId](#API_CancelChangeSet_RequestSyntax) **   <a name="AWSMarketplaceService-CancelChangeSet-request-uri-ChangeSetId"></a>
Required. The unique identifier of the `StartChangeSet` request that you want to cancel.  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `^[\w\-]+$`   
Required: Yes

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

The request does not have a request body.

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

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

{
   "ChangeSetArn": "string",
   "ChangeSetId": "string"
}
```

## Response Elements
<a name="API_CancelChangeSet_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.

 ** [ChangeSetArn](#API_CancelChangeSet_ResponseSyntax) **   <a name="AWSMarketplaceService-CancelChangeSet-response-ChangeSetArn"></a>
The ARN associated with the change set referenced in this request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `^[a-zA-Z0-9:*/-]+$` 

 ** [ChangeSetId](#API_CancelChangeSet_ResponseSyntax) **   <a name="AWSMarketplaceService-CancelChangeSet-response-ChangeSetId"></a>
The unique identifier for the change set referenced in this request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `^[\w\-]+$` 

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

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

 ** AccessDeniedException **   
Access is denied.  
HTTP status code: 403  
HTTP Status Code: 403

 ** InternalServiceException **   
There was an internal service exception.  
HTTP status code: 500  
HTTP Status Code: 500

 ** ResourceInUseException **   
The resource is currently in use.  
HTTP Status Code: 423

 ** ResourceNotFoundException **   
The specified resource wasn't found.  
HTTP status code: 404  
HTTP Status Code: 404

 ** ThrottlingException **   
Too many requests.  
HTTP status code: 429  
HTTP Status Code: 429

 ** ValidationException **   
An error occurred during validation.  
HTTP status code: 422  
HTTP Status Code: 422

## See Also
<a name="API_CancelChangeSet_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/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/marketplace-catalog-2018-09-17/CancelChangeSet) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/marketplace-catalog-2018-09-17/CancelChangeSet) 