---
title: "Updates the list of event attributes and event types"
method: PUT
path: "/data/events"
tags: ["datatypes"]
---

# Updates the list of event attributes and event types

`PUT /data/events`

Submits a new version of the available event attributes and event types replacing the previous one.

## Request body

- EventsDataDictionaryType — Defines the possible types of events and the list of attributes that are expected within each event type.
  - `description` string — An optional, user-provided, description of the data contained in the data dictionary.
  - `attributes` AttributeDefinition[] — The list of event attributes
    - `name` string — the name of the attribute
    - `description` string — an optional description for this attribute
    - `type` 'bool' | 'text' | 'integer' | 'float' | 'datetime' — Enumeration of all supported data types for user and event attributes
    - `mandatory` boolean — indicates that this attribute must have a value
    - `editable` boolean — indicates that this attribute can be changed in some way or not.
  - `eventTypes` EventTypeEntry[] — A list where each item is an object that specifies an event type and a list of attributes that are expected for this event type.
    - `type` string — the event type as a string constant
    - `attributes` AttributeReference[] — the list of attributes for this event type
      - `name` string — the name of the attribute that is being referenced
      - `mandatory` boolean — indicates that this attribute must have a value for this event type.

## Response `200`

Returns the original user attributes list that was used as an input to this operation.
If the changes introduce breaking changes then the operation will fail and a list of validation errors will be returned in the field validationErrors.

- EventsDataDictionaryUpdateResponse — Defines the possible types of events and the list of attributes that are expected within each event type.
  - `description` string — An optional, user-provided, description of the data contained in the data dictionary.
  - `attributes` AttributeDefinition[] — The list of event attributes
    - `name` string — the name of the attribute
    - `description` string — an optional description for this attribute
    - `type` 'bool' | 'text' | 'integer' | 'float' | 'datetime' — Enumeration of all supported data types for user and event attributes
    - `mandatory` boolean — indicates that this attribute must have a value
    - `editable` boolean — indicates that this attribute can be changed in some way or not.
  - `eventTypes` EventTypeEntry[] — A list where each item is an object that specifies an event type and a list of attributes that are expected for this event type.
    - `type` string — the event type as a string constant
    - `attributes` AttributeReference[] — the list of attributes for this event type
      - `name` string — the name of the attribute that is being referenced
      - `mandatory` boolean — indicates that this attribute must have a value for this event type.
  - `validationErrors` EventDataDictionaryValidationErrorsType — Contains all the validation errors that might occur during an update operation of the event data types. Errors related to the attribute definitions in the event attributes pool will be contained in the attributeErrors field. While errors related to the schema of a specific event type will be contained in the eventTypeErrors under the key that matches the event type constant.
    - `attributeErrors` AttributeValidationErrorType[] — Contains an entry for every attribute that didn't pass validation.
      - `attributeName` string — The name of the attribute
      - `errorMessage` string — A description of the nature of the error
    - `eventTypeErrors` EventTypeValidationErrorType[]
      - `eventType` string — The event type code
      - `errorMessage` string — A description of the nature of the error
      - `attributeErrors` AttributeValidationErrorType[] — If there was a problem with the attributes associated with this event type, then this field will contain a list of the attribute validation errors.
        - `attributeName` string — The name of the attribute
        - `errorMessage` string — A description of the nature of the error

---

[API](https://skmtc.net/gameanalytics/apis/datatiger-management-api.md) · [All operations](https://skmtc.net/gameanalytics/apis/datatiger-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gameanalytics/datatiger-management-api/versions/20a4f732a0b7/schema)
