Library_Item_Updatesession_File_AddSpec
The File.AddSpec structure describes the properties of the file to be uploaded.
{
"name": "string",
"source_type": "string",
"source_endpoint": {
"uri": "string",
"ssl_certificate_thumbprint": "string"
},
"size": 0,
"checksum_info": {
"algorithm": "string",
"checksum": "string"
}
}
The name of the file being uploaded.
The File.SourceType enumerated type defines how the file content is retrieved.
NONE : No source type has been requested.
PUSH : The client is uploading content using HTTP(S) PUT requests.
PULL : The server is pulling content from a URL. The URL scheme can be http, https, file, or ds.
The TransferEndpoint structure encapsulates a URI along with extra information about it.
The file size, in bytes. If unset, the server will not verify it received the correct size.