multipart/form-data request with two parts: a JSON metadata object (cdnRequest) and the binary file (cdnFile). The file is stored under a path derived from the type and targetName you provide.
Upload an asset
Uploads a file to the CDN. Returns the string"Success" on success or "Failed" if the upload could not be completed.
Content-Type: multipart/form-data with two named parts:
cdnRequest fields
string
required
Asset category. Controls which directory the file is stored under. Must be one of the
CdnType enum values — see the table below.string
required
Filename to use on the CDN (must not be blank). The stored path is
{type}/{targetName} — for example TRACK/nurburgring-gp-map.svg. This combined path is what you supply as the logo, trackMap, or similar field in other API calls.CdnType values
Responses
Example request
The example below uploads an SVG track map. After a successful upload, you can reference it asTRACK/nurburgring-gp-map.svg in the trackMap field when creating or updating a track layout.
cURL
201
400
Asset key format
Once uploaded, an asset is referenced throughout the API by combining thetype and targetName with a / separator:
Supply this combined key in the relevant field (
logo, trackMap, trackImages, logoWide, etc.) when creating or updating any resource that references a CDN asset.