const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
locationId: '<string>',
name: '<string>',
originId: '<string>',
url: '<string>',
faviconUrl: '<string>',
trackingCodeHead: '<string>',
trackingCodeBody: '<string>',
domainId: '<string>',
processing: true,
type: '<string>',
globalSectionsPath: '<string>',
globalSectionsUrl: '<string>',
globalSectionVersion: 123,
globalFonts: ['<string>'],
updatedBy: '<string>',
orderFormVersion: 123,
isLivePaymentMode: true,
deleted: true,
category: '<string>',
parentId: '<string>',
ischatWidgetLive: true,
chatWidgetId: '<string>',
imageOptimization: true,
isStoreActive: true,
isBlogEnable: true,
blogsData: {}
})
};
fetch('https://services.leadconnectorhq.com/funnels/funnel/update/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));