Forum Discussion

Nconforti's avatar
Nconforti
Mentor
5 years ago

roles_to_add/roles_to_remove not working

Hi everyone, I'm developing a python script and using the Khoros python module. Through this module I'm sending a PUT request to the community to either add or remove roles from specific users. My r...
  • ShalinA's avatar
    ShalinA
    5 years ago

    Hi Nconforti,

    I just noticed one issue with the data you are providing in the api request body 

    any roles that you want to add or remove, can you please put them in a list even if it is just one role or more than one? If you still see the problem, I will do further investigation.

    I.E 

    {"data":{"type":"user","roles_to_add":["t:Customer"]}}