update_holiday_profile
Update an existing holiday profile in your organization (name, holiday list, default-for-countries, active flag, or notes). The organization is fixed by your context. A profile's year cannot be changed. Only the fields you supply are changed; supplying holidays REPLACES the profile's holiday list. Holiday dates must fall within the profile's year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New profile name. | |
| notes | No | Optional free-text notes. | |
| holidays | No | A JSON array (as a string) that REPLACES the profile's holidays, each: {"date":"YYYY-MM-DD","name":"...","full_day_off":true|false,"window_start":"HH:mm","window_end":"HH:mm"}. Dates must be within the profile's year. | |
| is_active | No | Whether the profile is active. | |
| profile_id | Yes | Id of the holiday profile to update (required). Must belong to your organization. | |
| idempotency_key | No | Optional caller-supplied key; retrying with the same key returns the original result instead of acting twice. | |
| default_for_countries | No | Optional comma-separated ISO-2 country codes this profile is the default for, e.g. "US,CA". |