POST
/
media
/
files
/
upload-request
curl --request POST \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/media/files/upload-request \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "upload_type": "image",
  "file_name": "<string>",
  "file_size": 123
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "file": {
      "id": "<string>",
      "upload_type": "image",
      "upload_url": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
upload_type
enum<string>
required
Available options:
image,
video
file_name
string
required
file_size
integer
required

in bytes

Response

200 - application/json
OK
message
string
success
boolean
content
object