---
title: "Update an event property definition"
method: PATCH
path: "/event/definitions/{name}/properties/{propertyName}"
tags: ["Custom Events"]
---

# Update an event property definition

`PATCH /event/definitions/{name}/properties/{propertyName}`

Updates an event property definition's label and description.

## Path parameters

- `name` string, required
- `propertyName` string, required

## Request body

- CustomEventDefinitionPropertyUpdateRequest — Contains the properties of the event property definition to be updated.
  - `label` string — The label of the event property definition.
  - `description` string — The description of the event property definition.

## Response `200`

Successfully updated the event property definition.

- CustomEventDefinitionProperty — Represents a custom property of a custom event definition.
  - `name` string — The name of the custom property.
  - `label` string — The label of the property, used for display purposes.
  - `description` string — The description of the property.
  - `createTime` string, date-time — The time at which this object is created, formatted in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339). e.g., `2022-06-01T12:00:00.000Z`.
  - `type` 'STRING' | 'NUMBER' | 'TIMESTAMP' | 'URL' — The data type of the property. - `STRING`: Indicates a property that receives plain text strings. - `NUMBER`: Indicates a property that receives numeric values with up to one decimal. - `TIMESTAMP`: Indicates a property that receives epoch millisecond. - `URL`: Indicates a property that receives URLs, formatted as strings starting with `http://` or `https://`.

## Other responses

- `404` — The requested resource does not exist.

---

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