Skip to main content
PUT
/
api
/
v1
/
profiles
/
{id}
/
avatar
Upload a profile avatar
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string
required

Bearer token

Path Parameters

id
string
required

Body

The body is of type file.

Response

Avatar uploaded

message
string
required
avatar
object
required