Skip to main content
POST
/
room_sessions
/
{room_session_id}
/
actions
/
mute
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx();

const response = await client.rooms.sessions.actions.mute('0ccc7b54-4df3-4bca-a65a-3da1ecc777f0');

console.log(response.data);
{
  "data": {
    "result": "ok"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

room_session_id
string<uuid>
required

The unique identifier of a room session.

Example:

"0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"

Body

application/json

Parameters that can be defined during Mute action.

participants

Either a list of participant id to perform the action on, or the keyword "all" to perform the action on all participant.

Available options:
all
Example:

"all"

exclude
string<uuid>[]

List of participant id to exclude from the action.

Response

200 - application/json

Success Action Response

data
object