Users

Get User Avatar

GET /api/users/{user_id}/avatar/{avatar_id?}

Parameters

propertytypedescriptionexample
user_ididid1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1
avatar_ididavatar id1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1

Curl Example

curl -v -X GET -H 'Authorization: Bearer <user-token>' http://localhost:2002/api/users/{user_id}/avatar/{avatar_id?}

Set User Avatar

POST /api/users/{user_id}/avatar

Parameters

propertytypedescriptionexample
user_ididid1a9e45b4-2c30-4cbd-8812-fcc82c1f3ea1

Curl Example

curl -v -X POST -H 'Authorization: Bearer <user-token>' http://localhost:2002/api/users/{user_id}/avatar