try { const response = await fetch(url, { method: "PUT", }); if (response.ok) { const data = await response.text(); } } catch (e) { console.log(e) }