I’m trying to add a role to a user via requests in python, but I’m having problems with the data part. I’ve tried to send this data passing a pure list, using json parameter instead of data and other options…
If I use data=json.dumps(["my_role_id"]) or json=["my_role_id"] I don’t get any errors, only the status code 204, but it doesn’t assign the role the user.