Upload to permanent storage.
POST/storage/perm/add
Upload to permanent storage.
Request
Header Parameters
auth stringrequired
- application/json
Bodyrequired
fileUrlstring
The URL of the file you want to upload.
fileBufferstring
The Base64-encoded file data. Can be specified instead of fileUrl
.
uploadNamestring
The file name that should be used when downloading the file.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
fileIdstringrequired
The unique identifier for this file.
urlstringrequired
The permanent URL you can use to access this file.
{
"fileId": "string",
"url": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}