ERROR 401 Missing scope - Modify Channel Information

All API endpoints that require scopes need the user who’s granting those permissions to go through your apps OAuth process, using either the Implicit or Auth Code flows https://dev.twitch.tv/docs/authentication#user-access-tokens

It’s through that OAuth process to get a User Token that you can specify which scopes your app is requesting, and that the user can agree to them.