This method is used for initiating an upload
URL : /UploadService.js
Method : POST
Auth required : Yes
Required parameters
Name | Example | Description |
---|---|---|
method | AddUploadFileWithNameAndSettingsNoDate | Fixed parameter that identifies the endpoint method. |
accessKey | eb774621-1c2f-467b-b006-a8efa67094a7 | AccesKey for API |
computername | uploader | name of the uploader |
filename | test.jpg | name of the file including extension |
name | test | name of the asset (usually filename without extension) |
cUrl data example
Info | ||
---|---|---|
| ||
--data "method=AddUploadFileWithNameAndSettingsNoDate&accesskey=eb774621-1c2f-467b-b006-a8efa67094a7&filename=example.jpg&name=example&computername=testuploader" |
Success Response
Code : 200 OK
Content example
Code Block |
---|
{
"success": true,
"total": 1,
"error": "",
"items": [{
"uploadId": 318,
"itemId": 10621
}],
"warnings": null
} |
Error Response
Code : 200 OK
Content example
Code Block |
---|
{
"success": false,
"total": 0,
"error": "Access denied\r\n",
"items": null,
"warnings": [{
"Severity": 10,
"Code": 420,
"Description": "Access denied"
}]
} |