---
title: "Update an access code type"
method: PUT
path: "/v1/typecodes/{id}"
tags: ["type-codes"]
---

# Update an access code type

`PUT /v1/typecodes/{id}`

## Path parameters

- `id` integer, required

## Request body

- HttpUpdateTypeCodeRequest
  - `code_internal` string, required
  - `name` string, required

## Response `200`

OK

- object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/earnation/apis/earnation-api.md) · [All operations](https://skmtc.dev/earnation/apis/earnation-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/earnation/earnation-api/revisions/1219d1bf2177/schema)
