Skip to main content
PUT
Upload asset

Authorizations

Authorization
string
header
required

An API key from the dashboard, such as sk_live_…. It acts in its workspace.

Path Parameters

name
string
required

The path to record it under, such as launch/intro.mp4. Folders are made by naming them.

Body

application/json
content_type
string | null

Guessed from the name's extension when absent.

multipart
object | null

The multipart upload an earlier request answered with. With sha256 and size, it finishes it once every part is up; without them, it asks for more part URLs of an upload of unknown size.

overwrite
boolean
default:true

Replace an asset already at this name (the default); false refuses with 409 instead.

project_id
string | null

The project it belongs to; the workspace's default project when absent.

sha256
string | null

The file's SHA-256, lowercase hex. Leave it and size out while the file is still being written, such as a recording, to upload it in parts as it grows.

size
integer<uint64> | null

The file's size in bytes.

Required range: x >= 0

Response

OK

The asset is recorded: the workspace already had its content.

asset
object
required

An asset as the api shows it.

status
string
required
Allowed value: "recorded"