---
title: "Update Event"
method: PATCH
path: "/v1/{workspace}/event/{url_encoded_event_name}/"
---

# Update Event

`PATCH /v1/{workspace}/event/{url_encoded_event_name}/`

Update event description and its linked schema.

## Path parameters

- `workspace` string, required
- `url_encoded_event_name` string, required

## Request body

- object
  - `description` string — Description of the event. Can be used to describe which action this event is linked to.
  - `payload_schema` object
    - `schema` string, required — Linked schema slug to validate event properties structure. You can create a schema via [Create Schema](/reference/create-schema) endpoint and then link it here.
    - `version_no` integer — Schema version number to link. By default, live version is always picked for validation.

## Response `200`

Updated event details

- object

## Other responses

- `400` — Invalid event format
- `401` — Authentication failed

---

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