Changing Account Settings

I am trying to change the Account Settings by API and i am receiving this error:

{
  code: 4711,
  message: 'Invalid access token, does not contain scopes:[account:update:settings:master].'
}

I already add this scope to my App, it show in my scopes list in oauth after generate the token:

"scope": "user:read:user:admin meeting:read:meeting:admin meeting:update:livestream:admin meeting:update:livestream_status:admin meeting:read:chat_message:admin meeting:update:livestream:master meeting:update:livestream_status:master account:update:settings:admin **account:update:settings:master** team_chat:read:list_members:admin team_chat:write:members:admin team_chat:read:list_user_messages:admin team_chat:read:channel:admin team_chat:read:user_message:admin team_chat:read:user_channel:admin imchat:bot app:channel_content:write:admin",
            

But i am continue to get this same erro every time.

The request sent is

curl --location --request PATCH 'https://api.zoom.us/v2/accounts/wUeXxOgtSrapUHNHzAWssA/settings' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
    "live_streaming": {
        "enable": true,
        "custom_service": {
            "enable": true
        }
    }
}'

hi @visorroche ,

You first need to add the scope to your marketpace app, which you way you did.
Next you need to re-authhorise the app to the client
Then you can call to confirm the scopes when you connect

all the best

John

Hey John, thank you for your answer.

I think in this case should be something more. Because i have this type of problem any times and i did exactly what you said, always works. But with this end-point and this access not worked. I also tried to use a bot account and a user admin account, both not worked.

Hi @visorroche
I think the issue you are having is because you are trying to access Master account endpoints, and for that, you need a special license

Please take a look at this endpoint

1 Like