---
title: "Update add-on"
method: PATCH
path: "/draft_trips/{trip_uuid}/options/{id}"
tags: ["Add-ons"]
---

# Update add-on

`PATCH /draft_trips/{trip_uuid}/options/{id}`

Update Add-on

## Path parameters

- `trip_uuid` string, required
- `id` string, required

## Request body

- object
  - `data` UpdateOption — Update Add-on
    - `name` string — Name of the add-on option
    - `description` string — Description of the add-on option
    - `price` integer — Price of the add-on option
    - `price_type` string — Type of the add-on option, can be "option" or "personal_option"
    - `quantity` integer — Quantity of the add-on option. You can set it to null for "unlimited" value. (NOTE: setting "null" value is not possible in this editor)
    - `days_before_departure` integer — Whether this add-on has a booking deadline. The deadline is defined in relation to the trip start date. E.g. if this setting is set to “5” and the trip starts on January 15, then the booking deadline will be January 10.

## Response `200`

Successfully updated

- object
  - `data` Option — Option object
    - `id` string — Unique ID of the option/package
    - `trip_option_id` string — 64-bit Snowflake identifier encoded as a decimal string
    - `price` integer — Price of the option/package
    - `name` string — Name of the option/package
    - `type` 'package' | 'option' — Type of the option, 'package' or 'option'
    - `active_count` integer — Number of active participants per booking/order
    - `cancelled_count` integer — Number of canceled participants per booking/order
    - `discounted_amount` integer — The actual amount of the discount for the booking
    - `deposit_amount` integer — Deposit amount for the booking
    - `has_deposit` boolean — Whether the package has a deposit or not
    - `participants` Participant[]
      - `email` string — Email of the participant
      - `first_name` string — First name of the participant
      - `last_name` string — Last name of the participant

---

[API](https://skmtc.dev/wetravel/apis/authentication-api.md) · [All operations](https://skmtc.dev/wetravel/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wetravel/authentication-api/revisions/5c747875f084/schema)
