DC 5.1.0 6.4.1 - InitiateUpload
This method is used for initiating an upload
URL : /UploadService.js
Method : POST
Auth required : Yes
Required parameters
Name | Example | Description |
---|---|---|
method | InitiateUpload | Fixed parameter that identifies the endpoint method. |
accessKey | eb774621-1c2f-467b-b006-a8efa67094a7 | AccesKey for API |
filename | test.jpg | name of the file that is uploaded |
Optional parameters
Name | Example | Description |
---|---|---|
uploadername | fjs.upload | Name of the uploader. Used for workflows |
cUrl data example
Success Response
Code : 200 OK
Content example
{ "success": true, "total": 0, "error": "", "items": [{ "uploadId": 4, "itemId": 9512, "AssetId": 0 }], "warnings": [] }
Error Response
Code : 200 OK
Content example
{ "success": false, "total": 0, "error": "Access denied\r\n", "items": null, "warnings": [{ "Severity": 10, "Code": 420, "Description": "Access denied" }] }