Skip to main content
POST
/
assets
/
upload
Upload a new asset
curl --request POST \
  --url https://api.rendobar.com/assets/upload \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "psd_template",
  "name": "<string>",
  "filename": "<string>",
  "fileSize": 123,
  "category": "apparel"
}
'
{
  "data": {
    "assetId": "asset_a1b2c3d4e5f6g7h8",
    "uploadUrl": "https://api.rendobar.com/internal/upload/asset_a1b2c3d4e5f6g7h8"
  }
}

Body

application/json
type
enum<string>
required

Asset type

Available options:
psd_template,
image,
font
name
string
required

Display name for the asset

Required string length: 1 - 255
filename
string
required

Original filename

Required string length: 1 - 255
fileSize
integer
required

File size in bytes

category
enum<string>

Asset category (for PSD templates)

Available options:
apparel,
drinkware,
devices,
print

Response

Asset record created with upload URL

data
object
required