Library_Item_Updatesession_File_AddSpec

Library_Item_Updatesession_File_AddSpec
Library_Item_Updatesession_File_AddSpec

The File.AddSpec structure describes the properties of the file to be uploaded.

JSON Example
{
    "name": "string",
    "source_type": "string",
    "source_endpoint": {
        "uri": "string",
        "ssl_certificate_thumbprint": "string"
    },
    "size": 0,
    "checksum_info": {
        "algorithm": "string",
        "checksum": "string"
    }
}
string
name
Required

The name of the file being uploaded.

source_type
Required

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.

source_endpoint
Optional

The TransferEndpoint structure encapsulates a URI along with extra information about it.

integer As int64
size
Optional

The file size, in bytes. If unset, the server will not verify it received the correct size.

checksum_info
Optional

Provides checksums for a File.Info object.