Upload a single file - HxGN SDx - Update 63 - Administration & Configuration - Hexagon

HxGN SDx API Services Configuration

Language
English
Product
HxGN SDx
Search by Category
Administration & Configuration
SmartPlant Foundation / SDx Version
10

You can upload a single file in one operation using the following POST:

. . /api/v2/FileMgmt/UploadFile

You can add an optional checksum query parameter to the POST. For example:

UploadFile?checksum=77f0d7b7b9d6450e922c

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.