PATCH
/
asset
/
{assetId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assetId
string
required

ID of the asset

Body

application/json
name
any
creatorId
playbackPolicy
object | null

Whether the playback policy for an asset or stream is public or signed

storage
any

Response

200 - application/json
id
string
required
source
object
required
name
string
required

The name of the asset. This is not necessarily the filename - it can be a custom name or title.

type
enum<string>

Type of the asset.

Available options:
video,
audio
playbackId
string

The playback ID to use with the Playback Info endpoint to retrieve playback URLs.

userId
string
deprecated
playbackUrl
string

URL for HLS playback. It is recommended to not use this URL, and instead use playback IDs with the Playback Info endpoint to retrieve the playback URLs - this URL format is subject to change (e.g. https://livepeercdn.com/asset/ea03f37e-f861-4cdd-b495-0e60b6d753ad/index.m3u8).

downloadUrl
string

The URL to directly download the asset, e.g. https://livepeercdn.com/asset/eawrrk06ts2d0mzb/video. It is not recommended to use this for playback.

playbackPolicy
object | null

Whether the playback policy for an asset or stream is public or signed

creatorId
object
profiles
object[]

Requested profiles for the asset to be transcoded into. Configured on the upload APIs payload or through the stream.recordingSpec field for recordings. If not specified, default profiles are derived based on the source input. If this is a recording, the source will not be present in this list but will be available for playback.

storage
object
status
object

Status of the asset

projectId
string

The ID of the project

createdAt
number

Timestamp (in milliseconds) at which asset was created

createdByTokenName
string

Name of the token used to create this object

size
number

Size of the asset in bytes

hash
object[] | null

Hash of the asset

videoSpec
object

Video metadata