Skip to main content
POST
Create a pattern upload URL

Authorizations

Authorization
string
header
required

An API key from Settings → API keys in Arcade Studio.

Body

application/json
requestId
string
required

An ID you choose for this request, up to 128 characters. Retrying with the same requestId and body returns the original result.

Required string length: 1 - 128
mediaType
enum<string>
required

The file's media type, such as image/png.

Available options:
image/gif,
image/jpeg,
image/png,
image/webp
byteLength
integer
required

The file's size in bytes, at most 10 MiB. patterns/upload checks the size of the file you sent.

Required range: -9007199254740991 < x <= 10485760

Response

200 - application/json

OK

uploadId
string
required

The upload's ID. Only the account that created it can use it.

Pattern: ^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.(gif|jpg|png|webp)$
uploadUrl
string<uri>
required

Signed URL to PUT the file to. The host can change.

method
any
required
requiredHeaders
object
required

Headers the PUT must send, exactly as given.

expiresAt
string<date-time>
required

When the upload URL stops working.