Upload a preferred avatar image for a profile by sending the raw image binary data in the request body. The preferred avatar is the user-managed photo — the same field written when a user uploads a photo in the web UI — and takes precedence over the synced avatar for display.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer token
The body is of type file.