inactive), not deleted.job_id (string, e.g."rooms_1_1703123456789"). Poll /api/v1/rooms/status?job_id=<id>curl --location '/api/v1/push/rooms' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"ota_property_id": "HOTEL12345",
"rooms": [
{
"ota_room_code": "DLX_KING_001",
"room_name": "Deluxe King Room",
"room_type": "Deluxe",
"max_adults": 3,
"max_children": 2,
"status": "active",
"amenity_ids": [
1,
5,
8
],
"images": [
{
"url": "https://cdn.example.com/rooms/dlx-king/main.jpg",
"subtitle": "room",
"display_order": 1
},
{
"url": "https://cdn.example.com/rooms/dlx-king/bath.jpg",
"subtitle": "bathroom",
"display_order": 2
}
],
"base_inventory": {
"base_inventory_count": 5
},
"rates": [
{
"meal_plan_code": "EP",
"adults_1": 1200,
"adults_2": 1500,
"adults_3": 1800
},
{
"meal_plan_code": "CP",
"adults_1": 1500,
"adults_2": 1800,
"adults_3": 2100
}
],
"child_pricing_rules": [
{
"meal_plan_code": "EP",
"thresholds": [
{
"age_threshold": 5,
"children_1": 0,
"children_2": 0
},
{
"age_threshold": 12,
"children_1": 200,
"children_2": 400
}
]
}
]
}
]
}'{
"status": true,
"message": "Room push started. Job ID rooms_1_1703123456789.",
"job_id": "rooms_1_1703123456789"
}