The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hi eveveryone,
I'm a developer and I'm automating the update of user avatars using the following endpoint (using Python 3):
https://canvas.instructure.com/doc/api/users.html#method.users.update
PUT /api/v1/users/:id
We're having issues with some users not getting their avatar updated while others do.
We are successfully sending the http request:
However, we're not getting consistent results.
In the http request response for each user, we see two scenarios:
We have only done this in our TEST environment.
Any ideas on what is causing this?
Thanks in advance for your help!
They're not hitting a user quota are they?
Did you figure out?
Hello,
I know it's been a while and you've probably discovered a solution, however, I ran into this same issue writing a script to set the avatar url and lock the avatar state. If I tried to set both the state and url in one request, the url would revert to the default 'avatar-50.png'. My solution was to lock the avatar in one request and then set the avatar url in a separate request.
Did you find a solution?
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in