const url = 'https://api.sureshake.com/v2/reports/ipfs';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
reportId: '836df459-dc40-4aa1-972a-6eb0a864dff9',
metadata: {property1: null, property2: null},
documentKey: 'string'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));