Upload New File
POST/uploadSchemaFile
This API call can be used to upload the file in a specific location based on the property job.ecm.imp.file.path
in InternalConfig.groovy.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
file
- file with any extension (Example - file with .csv/.xlsx extension)
pathLocation
- Should be set to Datafiles
Request
- multipart/form-data
Body
file binary
pathLocation string
Responses
- 200
Upload New File / Upload New File
Response Headers
Access-Control-Allow-Credentials
string
Access-Control-Allow-Origin
string
Cache-Control
string
Date
string
Expires
string
Referrer-Policy
string
Set-Cookie
string
Strict-Transport-Security
string
X-Content-Type-Options
string
- application/json
- Schema
- Example (from schema)
- Upload New File
Schema
errorCode string
msg string
{
"errorCode": "0",
"msg": "file Save Successfully"
}
{
"errorCode": "0",
"msg": "file Save Successfully"
}
Loading...