ASI/people/:user_id/@avatar

GET ^top

Gets the full-sized avatar image of the user. If an avatar has not been set, a default avatar is returned.

Maximum width is 600px and maximum height 800px.

Returns

  • 200 - OK

POST ^top

Replaces this user's avatar. Each user is given an implicit default avatar at creation.

The semantics of this method are closer to that of PUT than POST. POST is used here due to the difficulty of multipart file uploads with the PUT method in some HTTP client libraries.

Parameters

file

The avatar picture file (as a multipart file upload).

Returns

  • 200 - OK
  • 400 - The avatar is of an unsupported type. Supported types are image/jpeg, image/png and image/gif.

DELETE ^top

Deletes this user's avatar. GET will hereon return the default avatar.

Returns

  • 200 - OK

SUBRESOURCES ^top