UploadFile

AccessToken

Upload a file.

Endpoint

POST /uploadFile

Parameter

FieldValue
accessTokenaccessToken set in the Config

Body

The body is a FormData object containing the following fields, the file field is placed in the formData and the other fields in a body object:

FieldValueType
fileFile to uploadFile
Body
folderfolder the file should be added tostring
name(optional)Changes the name of the uploaded file, still keeps the existing file extension thoughstring
replace(optional)If already exists replaceboolean
test (optional)Only log the file action but don't execute it for testing purposestrue

Response

200

{
"folder":"C:\\fileTest\\folder1",
"name":"testFile",
"replace":true
}
Status: 200
"success"

400

"Error Text"