---
title: "Update Promocode Code V2"
method: POST
path: "/event/update/discount-code/{event_id}/{discount_code}/"
tags: ["event"]
---

# Update Promocode Code V2

`POST /event/update/discount-code/{event_id}/{discount_code}/`

## Request

- Base URL: `https://api.myticketpartner.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myticketpartner.com/event/update/discount-code/{event_id}/{discount_code}/`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login/access/token`

## Path parameters

- `event_id` integer, required
- `discount_code` string, required

## Request body

- UpdateDiscountCode
  - `discount_code` string, nullable
  - `is_auto_apply` boolean, nullable
  - `usage_type` string, nullable
  - `usage_limit` integer, nullable
  - `discount_in_amount` union
    - number
    - string
  - `discount_in_percentage` union
    - number
    - string
  - `is_now_start` boolean, nullable
  - `is_scheduled_start` boolean, nullable
  - `start_date` string, nullable
  - `start_time` string, nullable
  - `is_ticket_sale_end_date` boolean, nullable
  - `is_scheduled_end` boolean, nullable
  - `end_date` string, nullable
  - `end_time` string, nullable
  - `description` string, nullable
  - `ticket_names` string[], nullable
  - `addons_name` string[], nullable
  - `add_on_uuids` string[], nullable
  - `auto_attach_with_ticket` boolean, nullable
  - `remaining_usage_limit` integer, nullable
  - `is_discount_enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: Not found
- `422`: Validation Error

## Changes

- **2026-10-17** `a73bffa39e22`: 2 info
  - removed the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` from the request property `discount_in_amount/anyOf[subschema #2]/`
  - removed the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` from the request property `discount_in_percentage/anyOf[subschema #2]/`
- **2026-10-02** `87c79c674af6`: 1 info
  - added the new optional request property `is_discount_enabled`
- **2026-09-03** `43ba83e1f2fe`: 2 breaking, 3 info
  - added the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` to the request property `discount_in_amount/anyOf[subschema #2]/`
  - added the pattern `^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$` to the request property `discount_in_percentage/anyOf[subschema #2]/`
  - added the new optional request property `addons_name`
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - …1 more

[Operation history](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/changes/event/update/discount-code/:event_id/:discount_code/post.md)

---

[API](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api.md) - [All operations](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/revisions/338d5dfbdf4c?raw)
