POST
/
frontend
/
api
/
v1
/
user
/
current
/
avatar
Create user avatar
curl --request POST \
  --url https://{host}/frontend/api/v1/user/current/avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "avatar": "https://your-bucket.s3.amazonaws.com/avatar.png",
  "crop": {
    "flip": "horizontal",
    "left": 30,
    "rotate": 0,
    "size": 100,
    "top": 40
  }
}'
{
  "avatar": {
    "created": "2023-11-07T05:31:56Z",
    "enabled": true,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "provider": "probe-dev",
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API Key Security (Header).

Body

Response

200
application/json

OK

The response is of type object.