Create upload URL
Mint a signed upload URL for an asset
/api/v2/assets/{asset}:createUploadUrlAuthentication WLT-Api-Key
Create an upload URL for a single untyped object, upload the exact content type and length, then complete the asset. Read the guide.
Path parameters
assetstringrequiredRequest body
application/jsonRequired
Body of an :createUploadUrl request.
content_length is the wire-format string the API contract requires
(JSON's large-integer limitation); the validator parses it to an int so
handlers can pass it to the service layer untouched.
contentTypestringrequiredcontentLengthintegerrequiredExpected upload size in bytes, serialized on the wire as a string. Capped at 1 GiB.
value <= 1073741824Responses
200
Successful Response
application/json
Upload ticket for a project-owned Asset.
uploadUrlstringrequiredShort-lived upload URL. Send the bytes here without the World Labs API key.
methodstringrequiredHTTP verb to use for the upload, e.g. PUT.
expiresAtstringrequiredWhen this upload grant expires; create a new one after.
date-timeheadersobjectHeaders the client MUST include on the upload request.
422
Validation Error
application/json
detailarray<ValidationError>