const options = {
method: 'PATCH',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: '{"operations":["genericCompany::create"]}'
};
fetch('https://api.runmorph.dev/v1/s/connection', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));