If you are already:
/guilds/<guild_id>/members/<member_id>/roles/<role_id>
Bot <token>
or Bearer <token>
DiscordBot (https://github.com/mybot/discord-slash-commands, 1.0)
then you probably need the role your token acts as to be higher in the role list than the role it's trying to assign to a user.
Bots can only assign roles if those roles are lower in the role list (Server Settings -> Roles -> Roles) than the bot's own role.