

# UpdateChangeSet

Drops operations from a change set that is held for curator review. Returns the updated change set.

## Request Parameters
<a name="API_UpdateChangeSet_RequestParameters"></a>

 ** agentContextId **   
The agent context that the change set belongs to, by its ID or ARN. AWS Context authorizes the request on this agent context's ARN. If the change set belongs to another agent context, the request fails with `ResourceNotFoundException`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 180.  
Pattern: `(arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:agent-context/)?[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** changeSetId **   
The change set to edit: the `changeSetId` that GetCurationProposal returns.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** changeSetVersion **   
The change set version that you read with GetChangeSet. The edit applies only if it's still the latest version. Otherwise, the request fails with `ConflictException`.  
Type: Integer  
Valid Range: Minimum value of 1.  
Required: Yes

 ** clientToken **   
A unique, case-sensitive identifier that you provide to make the request idempotent. For 8 hours, a retry of the same request with the same token returns the change set's latest version without writing again, and the same token used for another change set or a different request returns a `ValidationException`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[\x21-\x7E]+`   
Required: No

 ** operationsToRemove **   
Operations to remove, copied unchanged from `ListChangeSetOperations`. A retry must resend the same list with the same clientToken.  
Type: Array of [ChangeSetOperation](API_ChangeSetOperation.md) objects  
Array Members: Minimum number of 0 items. Maximum number of 1000 items.  
Required: Yes

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

The following elements are returned by the service.

 ** accessControl **   
See `AccessControl`. The service returns it on every item.  
Valid values:  
+  `ACL_RESTRICTED` - Only an allowed end user can read the content (its operations), and the change set can't be edited. Every caller can read its metadata, and its proposal's `title` names no nodes or edges.
+  `NO_ACL` - Every caller can read the content.
Type: String  
Valid Values: `ACL_RESTRICTED | NO_ACL` 

 ** agentContextId **   
The agent context's ID.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 180.  
Pattern: `(arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:agent-context/)?[a-z0-9]+(-[a-z0-9]+)*` 

 ** changeSetVersion **   
The version the edit created. Pass it to the next UpdateChangeSet.  
Type: Integer  
Valid Range: Minimum value of 1.

 ** createdAt **   
The date and time when the change set was created.  
Type: Timestamp

 ** generatedBy **   
The activity that generated the change set. A change set that an `IMPORT_ONTOLOGY` task writes carries `IMPORT_ONTOLOGY_TASK`, and one that a `CreateChangeSet` call makes carries `DIRECT_MODIFICATION`. A sync of a connected data source's own metadata, such as an AWS Glue Data Catalog sync, carries `DATA_SOURCE_INGESTION`. To list the change sets that carry a value, filter `ListChangeSets` on it.  
This member can be absent, so handle a change set that has no activity. For example, it's absent on a change set that records a connection's removal, on a change set that AWS Context wrote when it loaded an ontology's schema, and on a change set whose activity this API version doesn't recognize.  
Type: String  
Valid Values: `DATA_SOURCE_EXTRACTION | DATA_SOURCE_INGESTION | ENTITY_RESOLUTION | ONTOLOGY_GROUNDING | TRACE_ANALYSIS | IMPORT_DATA_DICTIONARY_TASK | IMPORT_VERIFIED_QUERIES_TASK | IMPORT_ONTOLOGY_TASK | DIRECT_MODIFICATION` 

 ** id **   
The change set's opaque instance ID. Requests take it as `changeSetId`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z0-9]+(-[a-z0-9]+)*` 

 ** status **   
The status of the change set. Valid values:  
+  `DRAFT` - AWS Context is evaluating the change set against the agent context's curation policies.
+  `PENDING` - Held for review as a curation proposal. While the change set is `PENDING`, you can remove operations from it with `UpdateChangeSet`.
+  `AUTHORIZED` - The change set is approved, and AWS Context is applying it.
+  `SUPPRESSED` - AWS Context won't apply the change set, because a curation policy denied it or its curation proposal was closed without approval.
+  `PUBLISHED` - AWS Context applied the change set to the agent context.
+  `FAILED` - AWS Context couldn't apply the change set.
 `SUPPRESSED` and `PUBLISHED` are final. A `FAILED` change set can still change to `PUBLISHED` or `PENDING` if AWS Context retries applying it. New values can be added, so handle a status that you don't recognize.  
Type: String  
Valid Values: `DRAFT | PENDING | AUTHORIZED | SUPPRESSED | PUBLISHED | FAILED` 

 ** statusReason **   
Why AWS Context created or closed the change set, for example because a connection was removed from the agent context. AWS Context keeps it across later status changes, including a curator's decision. Absent when AWS Context gave no reason.  
Type: [StatusReason](API_StatusReason.md) object

 ** updatedAt **   
The date and time when the change set was last updated, such as when its status changed or its operations were edited.  
Type: Timestamp

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

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

 ** AccessDeniedException **   
You don't have sufficient access to perform this operation. Verify that you have permission to perform the operation on the resource.    
 ** message **   
A message that describes the error.
HTTP Status Code: 403

 ** ConflictException **   
The request conflicts with the current state of the resource. Check the resource's current state before you retry the request.    
 ** message **   
A message that describes the error.  
 ** resourceId **   
The ID of the resource that caused the conflict. When several resources caused it, a comma-separated list of their IDs.  
 ** resourceType **   
The type of the resource that caused the conflict.  
Valid values:  
+  `agent-context` - An agent context.
+  `connection` - A connection.
+  `curation-policy` - A curation policy.
+  `evaluation` - Reserved for future use.
+  `ontology` - An ontology.
+  `ontology-induction` - An ontology induction.
+  `resource-policy` - A resource-based policy.
HTTP Status Code: 409

 ** InternalServerException **   
The request failed because of an internal error. Retry the request.    
 ** message **   
A message that describes the error.
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The specified resource was not found. Check that the ID is correct and that the resource exists in your account and Region.    
 ** message **   
A message that describes the error.  
 ** resourceId **   
The ID of the resource that was not found.  
 ** resourceType **   
The type of the resource that wasn't found.  
Valid values:  
+  `agent-context` - An agent context.
+  `connection` - A connection.
+  `curation-policy` - A curation policy.
+  `evaluation` - Reserved for future use.
+  `ontology` - An ontology.
+  `ontology-induction` - An ontology induction.
+  `resource-policy` - A resource-based policy.
HTTP Status Code: 404

 ** ThrottlingException **   
The request was denied because it exceeded a request rate quota. Wait, then retry the request.    
 ** message **   
A message that describes the error.  
 ** quotaCode **   
The code of the quota that throttled the request.  
 ** retryAfterSeconds **   
The number of seconds to wait before you retry the request, if AWS Context provides one.  
 ** serviceCode **   
The code of the service whose quota throttled the request.
HTTP Status Code: 429

 ** ValidationException **   
The input fails to satisfy the constraints of the operation. Correct the input before you retry the request.    
 ** fieldList **   
The fields that failed validation, each with a message that describes why.  
 ** message **   
A message that describes the error.  
 ** reason **   
The reason that the input failed validation. Valid values:  
+  `unknownOperation` - The operation isn't recognized.
+  `cannotParse` - The request couldn't be parsed.
+  `fieldValidationFailed` - One or more fields failed validation. `fieldList` describes them.
+  `other` - Another reason. `message` describes it.
HTTP Status Code: 400

## See Also
<a name="API_UpdateChangeSet_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/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/context-2022-07-26/UpdateChangeSet) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/UpdateChangeSet) 