v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1444236171.7 KB

Creates a new document object and version object.

The client specifies the parent folder ID and name of the document to upload. The ID is optionally specified when creating a new version of an existing document. This is the first step to upload a document. Next, upload the document to the URL returned from the call, and then call UpdateDocumentVersion.

To cancel the document upload, call AbortDocumentVersionUpload.

post/api/v1/documents

Headers

Authenticationstring password

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

Request body

Idstring

The ID of the document.

Namestring password

The name of the document.

ContentCreatedTimestampstring date-time

The timestamp when the content of the document was originally created.

ContentModifiedTimestampstring date-time

The timestamp when the content of the document was modified.

ContentTypestring

The content type of the document.

DocumentSizeInBytesinteger

The size of the document, in bytes.

ParentFolderIdstring

The ID of the parent folder.

Response

Success