Advice on Gradebook front end - student Avatars

I’m doing some work on the React gradebook ( edx/frontend-app-gradebook: Instructor gradebook tool for Master’s programs (github.com)) for a local edX improvement by a company .

As part of the designed improvement the avatars of each of the students is wanted to be displayed on the table of grades.

Is there a API where a userid can be passed and return is the url of the avatar?

Thanks.

Hi @Salik_Rafiq, the profile images for a specific user can be found in the user API, under .profile_image.image_url_full, and there are a few other sizes available in the JSON returned from that endpoint as well.

There are a few ways to query for specific users:

The profile image can also be deleted or updated via DELETE and PATCH requests respectively (but not retrieved) via this endpoint as well: http://localhost:18000/api/user/v1/accounts/staff/image

1 Like