cURL
curl --request POST \ --url https://api.example.com/v1/storage/object \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file='@example-file' \ --form 'path=<string>'
{ "code": 200, "data": { "message": "Success to put object to storage." }, "exception": null, "success": true }
Put object to the storage.
Bearer token authentication. Include the token in the Authorization header as 'Bearer '
The object to upload to storage.
Object to upload to storage.
Path of the object to upload. e.g. "pdf/test.pdf"
Success to put object to storage.
HTTP status code.
x >= 0
Whether the request was successful.