From f76fc8edcc31deb73923b0ba55a7372ecbb93f82 Mon Sep 17 00:00:00 2001 From: Diana Chirivi Date: Wed, 15 Jan 2025 18:46:06 -0500 Subject: [PATCH] VIDEO-4926 Adding update_participant method --- lib/twilio-ruby/rest/video/v1/room/participant.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/twilio-ruby/rest/video/v1/room/participant.rb b/lib/twilio-ruby/rest/video/v1/room/participant.rb index 20742084d..5d2992a3f 100644 --- a/lib/twilio-ruby/rest/video/v1/room/participant.rb +++ b/lib/twilio-ruby/rest/video/v1/room/participant.rb @@ -58,6 +58,14 @@ def list(status: :unset, identity: :unset, date_created_after: :unset, date_crea ).entries end + ## + # Update participant attributes + # @param [Hash] list of attributes + def update_participant(attributes = {}) + response = @version.request('GET', 'Participants/update_participant', attributes) + response.body['message'] + end + ## # Streams Instance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit