Forum Discussion

sachin's avatar
sachin
Mentor
13 years ago

Regarding Lithium REST API calls

Hi,

 

I am searching for REST API calls which gives following functionality but I am not able to find one.

 

1. Creating a new user with a given username and Role

2. Changing the Role (adding/removing) of existing User

3. Subscribe a User to a paticular Blog.

 

Please let me know if these REST API calls exist currently in Lithium.

 

Thanks,

Sachin

1 Reply

  • AdamN's avatar
    AdamN
    Khoros Oracle
    13 years ago

    Hi Sachin,

     

    1. To create a new user, you can use the "users/add" method of the "Community" class.
    2. To add or remove a role for a user, you can use the "users/add" or "users/remove", respectively, of the "Role" class
    3. To subscribe a user to a blog, you can use the "subscriptions" method of the "Blog" class to obtain a "NodeSubscriptionContext" object. Once you have this object, you can then use the "users/self/add" method of that object to add the descired subscription.

    Regards,

     

    Adam