Pular para o conteúdo principal
POST
Create an upload target for a creative file

Autorizações

Authorization
string
header
obrigatório

API key, sent as Authorization: Bearer unite_live_.... Create keys in the workspace settings.

Corpo

application/json
contentType
enum<string>
obrigatório

Content type of the file you will upload.

Opções disponíveis:
image/png,
image/jpeg,
image/webp,
image/gif,
video/mp4,
video/quicktime
sizeBytes
integer
obrigatório

Declared size in bytes: images up to 25 MB, videos up to 200 MB. The stored object is measured again when you create the pre-test.

Intervalo obrigatório: x <= 9007199254740991
filename
string

Original file name. Informational only.

Maximum string length: 255

Resposta

Upload target.

uploadId
string
obrigatório

Pass this as uploadId when you create the pre-test.

uploadUrl
string
obrigatório

Pre-signed URL. Send the file to it with the method and headers below.

method
string
obrigatório
Allowed value: "PUT"
headers
object
obrigatório

Send every header listed here with exactly these values on the PUT, Cache-Control included. A missing or different header makes the upload fail.

expiresAt
string
obrigatório

ISO 8601 UTC. The URL is valid for 15 minutes.