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 request:

. . /api/v3/UploadFile

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

UploadFile?checksum=45021bd96be8fd88651f764914be5d7b9dfd0db3

The payload or content of the request should be in form-data format 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",

"Status": "OK",

"Checksum": "45021bd96be8fd88651f764914be5d7b9dfd0db3",

}

  • 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 from various resources online.