Creates a new document object and version object¶
Description¶
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 update_document_version.
To cancel the document upload, call abort_document_version_upload.
Usage¶
workdocs_initiate_document_version_upload(AuthenticationToken, Id, Name,
ContentCreatedTimestamp, ContentModifiedTimestamp, ContentType,
DocumentSizeInBytes, ParentFolderId)
Arguments¶
-
AuthenticationTokenAmazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
-
IdThe ID of the document.
-
NameThe name of the document.
-
ContentCreatedTimestampThe timestamp when the content of the document was originally created.
-
ContentModifiedTimestampThe timestamp when the content of the document was modified.
-
ContentTypeThe content type of the document.
-
DocumentSizeInBytesThe size of the document, in bytes.
-
ParentFolderIdThe ID of the parent folder.
Value¶
A list with the following syntax:
list(
Metadata = list(
Id = "string",
CreatorId = "string",
ParentFolderId = "string",
CreatedTimestamp = as.POSIXct(
"2015-01-01"
),
ModifiedTimestamp = as.POSIXct(
"2015-01-01"
),
LatestVersionMetadata = list(
Id = "string",
Name = "string",
ContentType = "string",
Size = 123,
Signature = "string",
Status = "INITIALIZED"|"ACTIVE",
CreatedTimestamp = as.POSIXct(
"2015-01-01"
),
ModifiedTimestamp = as.POSIXct(
"2015-01-01"
),
ContentCreatedTimestamp = as.POSIXct(
"2015-01-01"
),
ContentModifiedTimestamp = as.POSIXct(
"2015-01-01"
),
CreatorId = "string",
Thumbnail = list(
"string"
),
Source = list(
"string"
)
),
ResourceState = "ACTIVE"|"RESTORING"|"RECYCLING"|"RECYCLED",
Labels = list(
"string"
)
),
UploadMetadata = list(
UploadUrl = "string",
SignedHeaders = list(
"string"
)
)
)