curl --request PUT \
--url https://api.example.com/reserve/update \
--header 'Content-Type: application/json' \
--data '
{
"v_id_reservation": "<string>",
"v_email": "<string>",
"v_phone_number": "<string>",
"v_init_date": "<string>",
"v_end_date": "<string>",
"v_pax": 123,
"v_status": "<string>",
"v_extras": "<string>",
"v_amount": 123,
"v_total_value": 123,
"v_fk_rate": 123
}
'{
"message": "Update Exitoso"
}
Update an existing reservation
curl --request PUT \
--url https://api.example.com/reserve/update \
--header 'Content-Type: application/json' \
--data '
{
"v_id_reservation": "<string>",
"v_email": "<string>",
"v_phone_number": "<string>",
"v_init_date": "<string>",
"v_end_date": "<string>",
"v_pax": 123,
"v_status": "<string>",
"v_extras": "<string>",
"v_amount": 123,
"v_total_value": 123,
"v_fk_rate": 123
}
'{
"message": "Update Exitoso"
}
access_token cookie.
"RSV00123""[email protected]""3119876543""2025-07-10T09:00:00Z""2025-07-10T14:00:00Z"25"EN PROGRESO", "FINALIZADO"Example: "EN PROGRESO""[{}]" (empty extras)"[{\"id_extra\":1, \"quantity\":1, \"value_add\":3000}]" (with extras)"[{\"id_extra\":1, \"quantity\":1, \"value_add\":3000}]"950001000004{
"message": "Update Exitoso"
}
access_token cookie is present.curl -X PUT https://api.demet.com/reserve/update \
-H "Content-Type: application/json" \
-b "access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-d '{
"v_id_reservation": "RSV00123",
"v_email": "[email protected]",
"v_phone_number": "3119876543",
"v_init_date": "2025-07-10T09:00:00Z",
"v_end_date": "2025-07-10T14:00:00Z",
"v_pax": 25,
"v_status": "EN PROGRESO",
"v_extras": "[{\\\"id_extra\\\":1, \\\"quantity\\\":1, \\\"value_add\\\":3000}]",
"v_amount": 95000,
"v_total_value": 100000,
"v_fk_rate": 4
}'
v_id_reservation field is required to identify which reservation to updatev_name field cannot be updated (it’s not included in the update schema)v_extras field must be sent as a JSON string, not as a JSON object or arrayv_name - Customer name remains unchanged