cURL
curl --request PUT \ --url https://api.mudstack.com/users/avatar \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form file=@example-file.txt
{ "id": "<string>", "auth0UserID": "<string>", "username": "<string>", "email": "<string>", "firstName": "<string>", "lastName": "<string>", "avatar_file_id": "<string>", "defaultAvatar": 123, "industry": "<string>", "occupation": "<string>", "company": "<string>", "emailVerified": true, "isActive": true, "city": "<string>", "state": "<string>", "country": "<string>", "zipCode": "<string>", "invited_by_user": {} }
Updates the avatar of the current user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The updated user details.
User model
Was this page helpful?