A user object
User updated successfully
const response = await fetch('https://beta.data.banyan.computer/api/v1/users/current', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "email": "text", "display_name": "text", "locale": "text", "profile_image": "text", "account_tax_class": "text", "subscription_id": "text", "subscription_valid_until": "2024-11-21T06:32:22.308Z" }
const response = await fetch('https://beta.data.banyan.computer/api/v1/users/current', { method: 'PATCH', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "id": "text", "email": "text", "display_name": "text", "account_tax_class": "text", "subscription_id": "text" }), }); const data = await response.json();
{ "msg": "text" }