Skip to main content
POST
Upload a brand asset

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string<shortuuid>
required

URL-safe brand identifier.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$

Body

multipart/form-data
file
file
required

The file to upload.

asset_type
enum<string>
default:other

Kind of asset: logo, banner, icon, document or other.

Available options:
logo,
banner,
icon,
document,
other
title
string
default:""

Optional title, up to 255 characters.

Maximum string length: 255
Pattern: ^[^\x00]{0,255}$
description
string
default:""

Optional description.

Maximum string length: 5000
Pattern: ^[^\x00]{0,}$
is_primary
boolean
default:false

Make this the brand's primary asset of its type, demoting the current one.

Response

Created

One file in a brand's media library.

id
string<shortuuid>
required

Identifier of the asset.

Required string length: 22
Pattern: ^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$
asset_type
enum<string>
required

Kind of asset: logo, banner, icon, document or other.

Available options:
logo,
banner,
icon,
document,
other
title
string
required

Optional title; empty when none was given.

description
string
required

Optional description; empty when none was given.

is_primary
boolean
required

Whether this is the brand's primary asset of its type. Each type has at most one.

url
string
required

URL the file can be downloaded from.

width
integer | null
required

Width in pixels of a logo, banner or icon; null for other types.

height
integer | null
required

Height in pixels of a logo, banner or icon; null for other types.

created
string<date-time>
required

ISO-8601 upload timestamp.

modified
string<date-time>
required

ISO-8601 last-modified timestamp.