const url = 'https://api.sureshake.com/v2/reports/<id>';
const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'string',
description: 'string',
data: {property1: null, property2: null},
is_public: false,
report_type: 'forecast',
linked_report_id: '76246679-3292-4dc2-907d-bbc7b92e9b96',
fiscal_period_start: '2019-08-24T14:15:22Z',
fiscal_period_end: '2019-08-24T14:15:22Z',
status: 'draft',
entity_id: '8161163a-f227-466f-bc01-090a01e80165',
organization_id: 'string',
document_key: 'string',
documentKey: 'string',
document_type: 'string',
documentType: 'string',
ipfs_hash: 'string',
ipfsHash: 'string',
ipfs_url: 'string',
ipfsUrl: 'string',
nft_address: 'string',
nftAddress: 'string',
nft_token_id: 'string',
nftTokenId: 'string',
transaction_hash: 'string',
transactionHash: 'string',
name: 'string',
reportType: 'forecast',
fiscalPeriodStart: 'string',
fiscalPeriodEnd: 'string'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));