// JavaScript Example: Reading Entities // Filterable fields: product_type, width, height, glazing, color, color_category, dividers, opening_type, profile_depth, material, estimated_price, customer_name, customer_email, customer_phone, status async function fetchConfigurationEntities() { const response = await fetch(`https://app.base44.com/api/apps/69859a3c4c0db8d1bca26fc7/entities/Configuration`, { headers: { 'api_key': 'e65313e0a82b40859fd113194585365d', // or use await User.me() to get the API key 'Content-Type': 'application/json' } }); const data = await response.json(); console.log(data); } // JavaScript Example: Updating an Entity // Filterable fields: product_type, width, height, glazing, color, color_category, dividers, opening_type, profile_depth, material, estimated_price, customer_name, customer_email, customer_phone, status async function updateConfigurationEntity(entityId, updateData) { const response = await fetch(`https://app.base44.com/api/apps/69859a3c4c0db8d1bca26fc7/entities/Configuration/${entityId}`, { method: 'PUT', headers: { 'api_key': 'e65313e0a82b40859fd113194585365d', // or use await User.me() to get the API key 'Content-Type': 'application/json' }, body: JSON.stringify(updateData) }); const data = await response.json(); console.log(data); }