const url = 'https://api.sureshake.com/v2/users/me/avatar';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({fileName: 'string', fileType: 'image/jpeg', fileSize: 0, base64Data: 'string'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));