I am trying to complete a bulk update of users with assistants. I have tried using psZoom but it soes not include the options needed.
I have been trying to set the can_manage_host_private_event variable against each assistant added
this is the code I have put together
foreach($list in $lists){
$Uri = ‘https://api.zoom.us/v2/users/‘+$list.user+’/assistants’
$Body = @{
email= $list.Asistants
can_manage_host_private_event = true
}
$output = Invoke-RestMethod -Uri $uri -Headers $auth -Body $Body -Method POST -UseBasicParsing
}
The auth works, I have a function set up for that that i use in other scripts.
no matter what i have tried i get the following
Line |
26 | $output = Invoke-RestMethod -Uri $uri -Headers $auth -Body $Body -Met …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 300
Unsupported Content Type
All suggestions would be gratefully received