put https://api.mobilize.io/v1/users//avatar
Allows uploading an image file to replace a user's avatar image
This is a background process
As we perform processing on the uploaded image to ensure it's compatible/optimized for various clients, this endpoint will return a 202 (Accepted) response as long everything looks good to start. The processing may fail silently in the background. If you want to be completely sure this process has completed, you can poll the
GET /users/:id
endpoint and watch for theavatar
field to change.In practice, the processing should be complete and committed on the order of minutes, but may take up to an hour depending on other system load.