Forum Discussion

deepak's avatar
13 years ago

REST API Email Verification

Hi,

 

We have created an user suing REST API call. There is no email verification sent to that particular user. So the admin has to manually set the user as verified from the user profile page.

 

Is there any REST API call to make a particular user as verified by admin.

 

Thanks in Advance.

3 Replies

  • You might want to give the "/users/id/##/email/set" method a try. Could be that if you set the email address that way it's automatically verified. You cna find the REST documentation for the method in the "User" object.
  • deepak's avatar
    deepak
    Ace
    13 years ago

    Thanks Claudis.

     

    But the issue is. I create user using restapi call. So When creating the user, email id is mandatory.


    Now when I try to set the email id of that user with the same mail id using your call I am getting

     

    user.email: That email address is the same as current email address.

     

    error.

  • deepak's avatar
    deepak
    Ace
    13 years ago

    Ok. I tried with a different email id. Still the set me verified in the moderator controls is alive. Actually what i need is when i create a new user through API call. I want him to be subscribed to a prticular blog with another rest api call.

     

    I am using the below call

    <community>restapi/vc/blogs/id/EventsCalendar/subscriptions/users/self/add

    for which i get "does not have access" error.

     

    I thought only admins can make subscription calls. So i made the user admin and tried.

     

    But now I get "E-mail Verification Required" error.

     

    Please advice.