Upload avatar image
POST
/users/me/avatarUpload an avatar image as multipart/form-data and get the stored URL. The URL is also applied to the user's avatarUrl.
| Auth | Login required |
|---|
Request body
filefilerequiredImage file (multipart/form-data)
Notes
Images are sent as multipart/form-data. JPEG, PNG and GIF are supported, up to 5MB. Exceeding the limit returns 400 (errorCode 10042).
Request
curl https://api.4s.link/users/me/avatar \-X POST \-H "Authorization: Bearer 4s_at_..." \-F "file=@image.png"
Example response
{"avatarUrl": "https://.../avatar.png"}