cURL
curl --request PUT \ --url https://api.scholarlysoftware.com/api/v1/profiles/{id}/avatar \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: image/jpeg' \ --data '"<string>"'
{ "message": "<string>", "avatar": { "attached": true, "filename": "avatar.jpg", "content_type": "image/jpeg", "byte_size": 45000 } }
Upload an avatar image for a profile by sending the raw image binary data in the request body
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Bearer token
The body is of type file.
file
Avatar uploaded
Show child attributes