AWS Systems Manager
API Reference (API Version 2014-11-06)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


Updates one or more values for an SSM document.

Request Syntax

{ "Attachments": [ { "Key": "string", "Values": [ "string" ] } ], "Content": "string", "DocumentFormat": "string", "DocumentVersion": "string", "Name": "string", "TargetType": "string", "VersionName": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


A list of key and value pairs that describe attachments to a version of a document.

Type: Array of AttachmentsSource objects

Array Members: Minimum number of 0 items. Maximum number of 1 item.

Required: No


A valid JSON or YAML string.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes


Specify the document format for the new document version. Systems Manager supports JSON and YAML documents. JSON is the default format.

Type: String

Valid Values: YAML | JSON

Required: No


(Required) The version of the document that you want to update.

Type: String

Pattern: ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)

Required: No


The name of the document that you want to update.

Type: String

Pattern: ^[a-zA-Z0-9_\-.]{3,128}$

Required: Yes


Specify a new target type for the document.

Type: String

Length Constraints: Maximum length of 200.

Pattern: ^\/[\w\.\-\:\/]*$

Required: No


An optional field specifying the version of the artifact you are updating with the document. For example, "Release 12, Update 6". This value is unique across all versions of a document, and cannot be changed.

Type: String

Pattern: ^[a-zA-Z0-9_\-.]{1,128}$

Required: No

Response Syntax

{ "DocumentDescription": { "AttachmentsInformation": [ { "Name": "string" } ], "CreatedDate": number, "DefaultVersion": "string", "Description": "string", "DocumentFormat": "string", "DocumentType": "string", "DocumentVersion": "string", "Hash": "string", "HashType": "string", "LatestVersion": "string", "Name": "string", "Owner": "string", "Parameters": [ { "DefaultValue": "string", "Description": "string", "Name": "string", "Type": "string" } ], "PlatformTypes": [ "string" ], "SchemaVersion": "string", "Sha1": "string", "Status": "string", "StatusInformation": "string", "Tags": [ { "Key": "string", "Value": "string" } ], "TargetType": "string", "VersionName": "string" } }

Response Elements

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

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


A description of the document that was updated.

Type: DocumentDescription object


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


The document has too many versions. Delete one or more document versions and try again.

HTTP Status Code: 400


The content of the association document matches another document. Change the content of the document and try again.

HTTP Status Code: 400


The version name has already been used in this document. Specify a different version name, and then try again.

HTTP Status Code: 400


An error occurred on the server side.

HTTP Status Code: 500


The specified document does not exist.

HTTP Status Code: 400


The content for the document is not valid.

HTTP Status Code: 400


You attempted to delete a document while it is still shared. You must stop sharing the document before you can delete it.

HTTP Status Code: 400


The version of the document schema is not supported.

HTTP Status Code: 400


The document version is not valid or does not exist.

HTTP Status Code: 400


The size limit of a document is 64 KB.

HTTP Status Code: 400

See Also

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