Update the Subscribe Rules for the Participant
Update the Subscribe Rules for the Participant
Path parameters
-
The SID of the Room resource where the subscribe rules to update apply.
-
The SID of the Participant resource to update the Subscribe Rules.
Body
-
A JSON-encoded array of subscribe rules. See the Specifying Subscribe Rules section for further information.
POST
/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules
curl \
--request POST 'https://video.twilio.com/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Rules=%255B%257B%2522type%2522%253A%2522exclude%2522%252C%2522all%2522%253A%2520true%257D%255D'
Request example
{"Rules"=>"%5B%7B%22type%22%3A%22exclude%22%2C%22all%22%3A%20true%7D%5D"}
Response examples (200)
{
"rules": [
{
"all": true,
"kind": null,
"type": "exclude",
"track": null,
"priority": null,
"publisher": null
}
],
"room_sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": null,
"date_updated": null,
"participant_sid": "PAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}