PUT
/
room
/
{id}
/
user
/
{userId}
curl --request PUT \
  --url https://livepeer.studio/api/room/{id}/user/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "canPublish": true,
  "canPublishData": true,
  "metadata": "<string>"
}'
This response has no body data.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

id
string
required
userId
string
required

Body

application/json
canPublish
boolean
default: truerequired

Whether a user is allowed to publish audio/video tracks (i.e. their microphone and webcam)

canPublishData
boolean
default: true

Whether a user is allowed to publish data messages to the room

metadata
string

User defined payload to store for the participant