Update Hotel Stay
Update Hotel Stay
Update a hotel stay record (partial update) and trigger CO2e recalculation
PATCH
Update Hotel Stay
Update Hotel Stay
Update a hotel stay record with a partial update — only the fields you send are changed. CO2e is recalculated asynchronously if dates, country, or rooms change.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the hotel stay to update
Body Parameters
All fields are optional — only send the ones you want to change.Check-in date in ISO format (
YYYY-MM-DD)Check-out date in ISO format (
YYYY-MM-DD). When both dates are sent, check-out must be on or after check-in.ISO-2 country code (e.g.
ES, GB, US)Label for the trip or traveler (max 255 characters)
Name of the hotel (max 255 characters)
Plain-text address for geocoding (max 500 characters)
Number of booked rooms (1–10 000)
Record status. Values:
active, deletedResponse
Returns the updated hotel stay with current CO2e (HTTP 200).Hotel stay UUID
UUID of the owning organization
Trip or traveler label
Check-in date (YYYY-MM-DD)
Check-out date (YYYY-MM-DD)
ISO-2 country code
Plain-text address
Hotel name
Number of booked rooms
Record status:
active, pending, or deletedHow the record was created:
manual, api, file_uploadUUID of the source file, if created from a file upload
Name of the source file, if created from a file upload
Calculated CO2e emissions in tCO2e. May change after recalculation.
UUID of the user who created the record
Geocoded location data resolved from the address
| Field | Type | Description |
|---|---|---|
country_code | string | ISO-2 country code |
place_id | string | Place identifier |
address_formatted | string | Full formatted address |
latitude | number | Latitude coordinate |
longitude | number | Longitude coordinate |
Creation timestamp
Last update timestamp
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Check-out date is before check-in date (when both are provided)Related Endpoints
Get Hotel Stay
View hotel stay details
Impact Calculation
View the CO2e calculation breakdown

