Telligent 6/7 User Avatar REST Endpoints

Telligent 6/7 User Avatar REST Endpoints

This question is answered

Hi,

are URLs of type community.mysite.com/.../& supposed to work in Telligent 7.x?

We are getting HTTP 404 error. I know there are new user avatar REST endpoints in Telligent 7 (telligent.com/.../29733.user-avatar-rest-endpoints.aspx), but shouldn't the old ones work as well?

thanks,

Robertas

Verified Answer
  • The url that you posted that is formatted like "~/api/membership.ashx..." uses the Telligent Evolution v1 REST API. That API has been deprecated for several versions now and was not included in the 7.0 release.

    If you are updating the user's avatar then you should use the new endpoint that you called out. If you're just trying to get a user's avatar then you can get the user and use their AvatarUrl property.

All Replies
  • The url that you posted that is formatted like "~/api/membership.ashx..." uses the Telligent Evolution v1 REST API. That API has been deprecated for several versions now and was not included in the 7.0 release.

    If you are updating the user's avatar then you should use the new endpoint that you called out. If you're just trying to get a user's avatar then you can get the user and use their AvatarUrl property.

  • I'm trying to update a user's avatar url via the REST API by making a post call (with Rest-Method: PUT) to: ~/api.ashx/v2/users/2105/avatar.json (in which 2105 is my UserId)

    the result is a json object with error:

    "Unauthorized: Permission to update user avatar with remote URL denied."

    Both the user used for the rest-request as the impersonate user are Administrators. Does anyone have a clue how to fix this?

    -- Edit --

    Ah figured it out. Turned out that the setting 'Enable remote avatars' wasn't enabled. Error could be a bit more clear about this...