const {{name}} = new {{type}}();
{{#if item}}
const {{item.name}} = '{{item.value}}';
{{name}}.{{item.name}} = {{item.name}};
{{/if}}
// TODO populate {{name}} object

const url = `${baseUrl}{{#each chunks}}{{#if this.param}}${{expression this.path}}{{/if}}{{#unless this.param}}{{this.path}}{{/unless}}{{/each}}`;
const response = await fetch(url, {
    method: 'put',
    headers: {
        'Content-Type': 'application/json',
        Authorization: `Bearer ${authToken}`
    },
    body: JSON.stringify({{name}})
});
if (response.ok) {
    console.log(`Successfully updated {{name}} at: ${url}`);
}
