---
title: "Update Access Code V2"
method: POST
path: "/event/update/access-code/{event_id}/{access_code}/"
tags: ["event"]
---

# Update Access Code V2

`POST /event/update/access-code/{event_id}/{access_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/access-code/{event_id}/{access_code}/`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/login/access/token`

## Path parameters

- `event_id` integer, required
- `access_code` string, required

## Request body

- UpdateAccessCode
  - `access_code` string, nullable
  - `usage_type` string, nullable
  - `usage_limit` integer, nullable
  - `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
  - `is_all_hidden_tickets` boolean, nullable
  - `is_select_menually` boolean, nullable
  - `ticket_names` string[], nullable
  - `remaining_usage_limit` integer, nullable
  - `is_access_enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

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

## Changes

- **2026-09-24** `6b4949693d12`: 1 info
  - added the new optional request property `is_access_enabled`
- **2026-09-03** `43ba83e1f2fe`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/myticketpartner/apis/white-labelling-booking-api/changes/event/update/access-code/:event_id/:access_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)
