const data = {
    records: [
        {
            date: "2024-10-13",
            no_of_room: "38",
            reservation_status: "occupied"
        }
    ],
    total_rooms: 49,
    out_of_service: 0,
    vacant_clean: 0
};

fetch('YOUR_API_URL', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)
})
.then(response => {
    if (!response.ok) {
        throw new Error('Network response was not ok ' + response.statusText);
    }
    return response.json();
})
.then(data => {
    console.log('Success:', data);
})
.catch((error) => {
    console.error('Error:', error);
});
