Saltar al contenido principal
PATCH
/
multistream
/
target
/
{id}
TypeScript
import { Livepeer } from "livepeer";

const livepeer = new Livepeer({
  apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await livepeer.multistream.update({
    url: "rtmps://live.my-service.tv/channel/secretKey",
  }, "<id>");

  // Handle the result
  console.log(result);
}

run();
{
  "errors": [
    [
      "id not provided",
      "Account not found"
    ]
  ]
}

Actualizar objetivo Multistream

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

id
string
requerido

ID of the multistream target

Cuerpo

application/json
name
string
url
string<uri>

Livepeer-compatible multistream target URL (RTMP(S) or SRT)

Pattern: ^(srt|rtmps?)://
Ejemplo:

"rtmps://live.my-service.tv/channel/secretKey"

disabled
boolean

If true then this multistream target will not be used for pushing even if it is configured in a stream object.

Respuesta

Success

Last modified on March 1, 2026