Forum Discussion

jbrown's avatar
jbrown
Contributor
12 years ago

Set url_icon results in Error 303

I'm trying to set the avatar url by posting to /restapi/vc/users/login/<name>/profiles/name/url_icon/set however the response it returns has an error code of 303.

 

The body of the post

 

value=http://someurlhere&restapi.session_key=mySessionKey

 

The body of the response contains some sort of serialized user object but nothing helpful.

 

 

  • YuriK's avatar
    YuriK
    Khoros Expert

    Hey jbrown,

     

    The 303 error message indicates that the user making the API call does not have permission to modify the profile image. Unless you're an admin, a user can only change their own icon. 

     

    Are you using an admin account to try to update the url_icon using the API?

     

    Thank you,

     

    Yuri

    • jbrown's avatar
      jbrown
      Contributor

      Currently we're trying to update a users icon with their own account. I'll double check our permissions. If that doesn't work I'll just use an admin account.

       

      Thanks.

      • xorrkaz's avatar
        xorrkaz
        Genius

        You may not have allowed regular users to make REST write calls.  The permissions system separates read and write REST operations.