Using the new "Modify channel" endpoint for helix

You need a "user access token. App access tokens don’t have a user attached.

This grants you access to update the bots channel.

You need permission from the broadcaster you wish to update.

So you need

  • a user access token
  • with the user:edit:broadcast scope
  • where the user_id of the token matches the broadcaster_id in your qs

Finally this looks like NodeJS, the requests module is deprecated, you should find a new module, node-fetch, axios and got are recommended alternatives (I use got myself)

1 Like