Set trip guest nights
set_trip_guest_nightsReplace one hotel guest's allocated nights on a Trip: each night's room and tax share for that person, inside their stay, checkout exclusive. The list you pass is the whole set; an empty list clears the nights. stay_id and guest_id (guests[].id, not user_id) come from list_project_travel. Creates no expense or charge. Pass trip_id when the project has more than one Trip. Needs financial and project-manager access. Asks for confirmation first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"stay_id": "<stay_id>",
"guest_id": "<guest_id>",
"nights": "<nights>"
},
"name": "set_trip_guest_nights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nights | Yes | the full list of nights; an empty list clears them | |
| stay_id | Yes | stay id from list_project_travel | |
| trip_id | No | Trip id from list_project_travel kind=trips; needed when the project has more than one Trip | |
| guest_id | Yes | the guest row's id (guests[].id), not user_id | |
| project_id | Yes | project id from list_projects, or a gig's project_id from get_event | |
| organization_id | No | organization to act in, an id from get_me; omit to use your active organization | |
| confirmation_token | No | leave empty on the first call; the server returns confirmation_required + a token, then resend the SAME args with that token to proceed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | when the tool asks first: { status: "confirmation_required", confirmation_token, summary, expires_in_seconds, instructions } and nothing is changed; once confirmed, the API response { status (HTTP status), data: { project_id, trip_id, trip_name, trip_revision, project_name, currency, billing_event_id, gigs [{ event_id, title, event_date, end_date, is_billing }], travellers [{ user_id, user_name }], external_sources [{ id, source, external_id, external_status, traveller_label, cancelled_at }], buyouts [{ id, category, amount, currency, notes }], viewer, bookings { flights, stays, rides }, schedule { project_id, days, undated }, event_trips [{ trip_id, trip_name }] } } | |
| error | No | when ok is false |