---
title: "Update an event type by ID"
method: PUT
path: "/event-types/{id}"
tags: ["Endpoints"]
---

# Update an event type by ID

`PUT /event-types/{id}`

This endpoint updates an event type by its [UUID](/reference/uuid-prefixes.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- EventTypePutDto
  - `active` boolean, required — A boolean value that indicates whether the event type is active or not. If an event type is inactive, events for this type will no longer be accepted.

## Response `200`

The updated event type.

- EventTypeDto
  - `id` string, required — The event type ID as an *eTrusted* [UUID](/reference/uuid-prefixes.
  - `createdAt` string, date-time, required — The date and time when the event type was created, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) and [RFC 3339](https://tools.ietf.org/html/rfc3339) compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`.
  - `updatedAt` string, date-time, required — The date and time when the event type was last modified, in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) and [RFC 3339](https://tools.ietf.org/html/rfc3339) compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`.
  - `active` boolean, required — A boolean value that indicates whether the event type is active or not. If an event type is inactive, events for this type will not be accepted anymore.
  - `name` string, required — The name of the event type. `checkout` is the default event type for every account. [Please contact us to add more event types for you!](https://etrusted.com/en/contact/)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found

---

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