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

# Luma: Post V1 Events Coupons Update

> Update Coupon. Luma Post V1 Events Coupons Update reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Update Coupon.

<Info>
  Tool ID: `luma_post_v1_events_coupons_update`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'luma_post_v1_events_coupons_update',
  {
    "event_id": "event_123",
    "code": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute luma_post_v1_events_coupons_update --input '{
  "event_id": "event_123",
  "code": "example"
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get luma_post_v1_events_coupons_update --json` for the complete live contract.

## Input reference

Update Coupon

| Name                      | Type      | Required | Default | Details                                                                       |
| ------------------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------- |
| `payload.event_id`        | `string`  | Yes      | —       | Event ID, this usually starts with evt-                                       |
| `payload.code`            | `string`  | Yes      | —       | —                                                                             |
| `payload.remaining_count` | `integer` | No       | —       | Minimum: -9007199254740991. Maximum: 9007199254740991.                        |
| `payload.valid_start_at`  | `string`  | No       | —       | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z Format: `date-time`. |
| `payload.valid_end_at`    | `string`  | No       | —       | ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z Format: `date-time`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Update Coupon",
    "properties": {
      "event_id": {
        "type": "string",
        "description": "Event ID, this usually starts with evt-"
      },
      "code": {
        "type": "string"
      },
      "remaining_count": {
        "type": "integer",
        "minimum": -9007199254740991,
        "maximum": 9007199254740991
      },
      "valid_start_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z",
        "format": "date-time"
      },
      "valid_end_at": {
        "type": [
          "string",
          "null"
        ],
        "description": "ISO 8601 Datetime. For example, 2022-10-19T03:27:13.673Z",
        "format": "date-time"
      }
    },
    "required": [
      "event_id",
      "code"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name          | Type     | Required | Default | Details                                        |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      | —       | Empty response                                 |
| `result.meta` | `object` | No       | —       | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Empty response",
        "properties": {},
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Luma provider guide](/docs/providers/luma/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
