@@ -373,23 +373,21 @@ paths:
373373 content :
374374 application/json :
375375 schema :
376- $ref : " #/components/schemas/ChangeTracksRequest "
376+ $ref : " #/components/schemas/UpdateTracksRequest "
377377 examples :
378378 reuse_transceiver :
379379 description : Reuse an existing transceiver for a new track
380380 value :
381381 tracks :
382- some-track-name :
383- location : " remote"
382+ - location : " remote"
384383 sessionId : " 2a45361d5fd7cc14eface0587c276c94"
385384 trackName : " other-track-name"
386385 mid : " 7"
387386 reuse_with_simulcast :
388387 description : Reuse an existing transceiver with simulcast preferences
389388 value :
390389 tracks :
391- trackID2 :
392- location : " remote"
390+ - location : " remote"
393391 sessionId : " 2a45361d5fd7cc14eface0587c276c94"
394392 trackName : " simulcast-track"
395393 mid : " 8"
@@ -428,8 +426,7 @@ paths:
428426 value :
429427 requiresImmediateRenegotiation : false
430428 tracks :
431- trackID1 :
432- mid : " 7"
429+ - mid : " 7"
433430 sessionId : " 2a45361d5fd7cc14eface0587c276c94"
434431 trackName : " new-track-name"
435432
@@ -673,6 +670,16 @@ components:
673670 description : Map of track IDs to track objects for changing tracks
674671 sessionDescription :
675672 $ref : " #/components/schemas/SessionDescription"
673+ UpdateTracksRequest :
674+ type : object
675+ properties :
676+ tracks :
677+ type : array
678+ items :
679+ $ref : " #/components/schemas/TrackObject"
680+ description : Array of track objects for updating tracks
681+ sessionDescription :
682+ $ref : " #/components/schemas/SessionDescription"
676683 UpdateTracksResponse :
677684 type : object
678685 properties :
@@ -683,13 +690,13 @@ components:
683690 requiresImmediateRenegotiation :
684691 type : boolean
685692 tracks :
686- type : object
687- additionalProperties :
693+ type : array
694+ items :
688695 allOf :
689696 - $ref : " #/components/schemas/TrackObject"
690697 - properties :
691698 errorCode :
692699 type : string
693700 errorDescription :
694701 type : string
695- description : Map of track IDs to track objects with results
702+ description : Array of track objects with results
0 commit comments