> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Charter works for any HTTP API, including the user's own. The packs are examples of the result, not the limit: an API with no pack is declared the same way, following https://raw.githubusercontent.com/r28ai/charter/main/docs/.mintlify/skills/declaring-charter-tools/SKILL.md.
> Charter is for agents that act in customers' accounts: every call is checked field by field before it's sent, the app says whose account each call is for, and the same declarations list what each tool can reach. https://docs.r28.ai/charter/llms.txt says what it is and lists every page.

# calendars_coupons_update

> Change how many more times a calendar coupon can be used, or the window it is valid in. Its discount cannot be changed after it is created.

POST`https://public-api.luma.com/v1/calendars/coupons/update`

```python luma_calendars_coupons_update.py theme={null}
import asyncio

from charter.packs import luma

result = asyncio.run(luma.calendars_coupons_update.ainvoke({"code": ...}))
```

## Body

| Field | Type | Description |
| - | - | - |
| `code` \* | `string` | The coupon's code, which is how this call finds the coupon to change. |
| `remainingCount` | `integer` | Number of times the coupon can still be used. Set to 1000000 for unlimited uses. ≥ -9007199254740991; ≤ 9007199254740991 |
| `validStartAt` | `string` | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z |
| `validEndAt` | `string` | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.