Set my photo

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, 429 or 503 changes nothing. After a 500 the photo may or may not have changed: GET /me shows which.
  • Send the image's own type as Content-Type. A body typed multipart/form-data, application/x-www-form-urlencoded or text/plain that doesn't carry this site's Origin is refused with a 403 in plain text, not the error object, before this endpoint answers.
  • Every answer carries X-Request-Id and Cache-Control: private, no-store.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The image.

Headers
string
enum
Defaults to image/jpeg

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json