Upload File
POSThttps://api.staging.trential.app/utility/api/1.0/wallet/files
Upload File
Request
Query Parameters
folderName stringrequired
- multipart/form-data
Body
file binary
Responses
- 200
File uploaded successfully
- application/json
- Schema
- Example (from schema)
- Success
- Error
Schema
code integer
message string
data object
{
"code": 0,
"message": "string",
"data": {
"fileId": "string",
"url": "string"
}
}
Successful response
{
"code": 0,
"message": "Success",
"data": {
"fileId": "1234567890abcdef",
"url": "https://storage.trential.dev/files/1234567890abcdef/test.png"
}
}
Error response
{
"code": -1,
"message": "Error message"
}
Authorization: http
name: AuthorizationHeadertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.staging.trential.app/utility/api/1.0/wallet/files' \
-H 'Content-Type: multipart/form-data' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear