Skip to main content
POST
/
v1
/
storage
/
object
Put Object to Storage
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
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Include the token in the Authorization header as 'Bearer '

Body

multipart/form-data

The object to upload to storage.

file
file
required

Object to upload to storage.

path
string
required

Path of the object to upload. e.g. "pdf/test.pdf"

Response

Success to put object to storage.

code
integer<int32>
required

HTTP status code.

Required range: x >= 0
success
boolean
required

Whether the request was successful.

data
any
exception
any