constbeneficiary_id="1"; // Example beneficiary IDconstapi_token="YOUR_ACCESS_TOKEN";constbase_url="{{baseUrl}}";consturl=`${base_url}/beneficiaries/${beneficiary_id}/archive`;fetch(url, { method:'PUT', headers: {'Authorization':`Bearer ${api_token}`,'Content-Type':'application/json' }}).then(response => {if (!response.ok) {thrownewError('Network response was not ok '+response.statusText); }returnresponse.json();}).then(data =>console.log(data)).catch(error =>console.error('There was a problem with your fetch operation:', error));