const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({type: 'update', name: '<string>', value: '<string>'})
};
fetch('https://api.threetone.in/v1/convai/secrets/{secret_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));