---
title: "Update make_reservation tool configuration"
method: PATCH
path: "/agents/{agent_id}/tools/make-reservation"
tags: ["Agent Tools"]
---

# Update make_reservation tool configuration

`PATCH /agents/{agent_id}/tools/make-reservation`

Update configuration for the make_reservation tool.

    Allows you to configure:
    - Enable/disable the tool
    - SMS notification settings (send_sms, sms_text template)
    - Reservation duration and hours
    - Guest information requirements
    - Check-in/check-out times (hotel only)

    All fields are optional - only provide the fields you want to update.

    Schedule format for reservation_hours:
    ```json
    {
      "monday": ["09:00 - 12:00", "14:00 - 18:00"],
      "tuesday": ["09:00 - 18:00"],
      "wednesday": [],
      ...
    }
    ```

    SMS template placeholders — all optional, use any subset:
    - {nome_cliente}, {data_inizio}, {data_fine}
    - {link} (edit/cancel reservation link), {numero_ospiti} (party size)

    An unknown placeholder is left as-is in the delivered message.

    Authentication:
    - API key with READ_WRITE permission

## Path parameters

- `agent_id` string, uuid, required

## Request body

- object — Schema for updating make_reservation tool configuration.
  - `is_enabled` boolean, nullable — Enable or disable the tool
  - `send_sms` boolean, nullable — Send SMS confirmation when reservation is made
  - `allow_overlapping_reservations` boolean, nullable — Allow overlapping reservations
  - `include_guests` boolean, nullable — Request number of guests in the reservation
  - `sms_text` string, nullable — SMS template. All placeholders are optional: {nome_cliente}, {data_inizio}, {data_fine}, {link}, {numero_ospiti}. Unknown placeholders are left as-is in the delivered message
  - `reservation_duration_minutes` integer, nullable — Default reservation duration in minutes (15-480)
  - `reservation_hours` object, nullable — Working hours for accepting reservations (schedule format: {monday: ['09:00 - 18:00'], ...})
  - `default_checkin_time` string, nullable — Default check-in time in HH:MM format (hotel only)
  - `default_checkout_time` string, nullable — Default check-out time in HH:MM format (hotel only)
  - `custom_fields` object[], nullable — Custom fields the AI will collect during reservations. Each field defines a piece of information to gather from the customer.
    - `field_name` string, required — Internal field identifier (snake_case, e.g., 'allergies', 'room_preference')
    - `display_name` string, required — Human-readable label shown to the user (e.g., 'Food Allergies')
    - `field_type` string — Data type: string, number, boolean, date, email, phone, url
    - `description` string, nullable — Description of the field, used as instruction for the AI agent
    - `is_required` boolean — Whether the AI must collect this field before making the reservation

## Response `200`

Successfully updated configuration

- object
  - `ok` boolean
  - `data` object
    - `name` string
    - `display_name` string
    - `description` string
    - `category` string
    - `category_display_name` string
    - `scope` string
    - `enabled` boolean
    - `is_configured` boolean
    - `can_disable` boolean
    - `icon_url` string
    - `version` string
    - `config_fields` object[]

## Other responses

- `400` — Invalid request data
- `401` — Invalid or missing API key
- `403` — Insufficient permissions
- `404` — Resource not found

---

[API](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1.md) · [All operations](https://skmtc.net/yourang/apis/yourang-ai-external-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yourang/yourang-ai-external-api-v1/versions/49680ee64400/schema)
