put
https://api.emaktalk.com/api/v2/users/me/avatar/content
Replaces the signed-in person's photo with the image sent as the request body. Send the image itself, not a form, with its Content-Type: image/jpeg, image/png, image/gif or image/webp, at most 5 MB. The bytes must be an image of that type. The photo is the person's across every account they belong to.
Response: { data } with avatar_url, the photo as GET /me now shows it.
Notes:
- Only an app token, signed in as a person, is accepted: an API key is refused with
forbidden. The photo is always the signed-in person's. - An answer of
400,401,403,405,413,429or503changes nothing. After a500the photo may or may not have changed:GET /meshows which. - Send the image's own type as
Content-Type. A body typedmultipart/form-data,application/x-www-form-urlencodedortext/plainthat doesn't carry this site'sOriginis refused with a403in plain text, not the error object, before this endpoint answers. - Every answer carries
X-Request-IdandCache-Control: private, no-store.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
