LibraryItemUpdatesessionFileAddSpec
The File.AddSpec structure describes the properties of the file to be uploaded.
Properties
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.
Possible values are: NONE , PUSH , PULL
The checksum of the file. If specified, the server will verify the checksum once the file is received. If there is a mismatch, the upload will fail. For ova files, this value should not be set. If unset, the server will not verify the checksum.
The file size, in bytes. If unset, the server will not verify it received the correct size.
Location from which the Content Library Service will fetch the file, rather than requiring a client to upload the file. This field is optional and it is only relevant when the value of File.AddSpec.source-type is PULL.
JSON Example
{
"name": "string",
"source_type": "NONE"
}