You can upload a single file in one operation using the following POST:
http://[host]/[server]/api/v2/FileMgmt/UploadFile
You can add an optional checksum query parameter to the POST. For example:
UploadFile?checksum=45021bd96be8fd88651f764914be5d7b9dfd0db3
The payload or content of the request should be in form-data and contain a single file part. If you use the POST request to upload a single file, the response shows the name of the uploaded file in the UploadId property. For example:
{
"UploadId": "77f0d7b7-b9d6-450e-922c-5c84dc869442",
"Checksum": "77f0d7b7b9d6450e922c",
}
-
The checksum is the SHA1 hash of the file contents, which is in hexadecimal form, lower-case, and with all hyphens removed.
-
File checksums can be created online from various resources. For example, https://defuse.ca/checksums.htm.