Update an event type

Update a single event type. Absent fields keep their stored values, including name, which the batch upsert requires but this does not.

PATCH https://sitepaste.com/api/v1/public/sites/{siteId}/event-types/{slug}

Requires the content scope.

Usage

curl -X PATCH "https://sitepaste.com/api/v1/public/sites/default/event-types/breathwork" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "description": "Guided sessions, all levels" }'

Body

Any of name, description, imageUrl, pageSlug, sortOrder. An omitted name keeps the stored one; a name sent as "" is a 422 naming name. A slug in the body must match the one in the path, ignoring case, so echoing back a read is accepted. To reorder the whole collection, use PATCH /sites/{siteId}/event-types.

eventTypes and deleteSlugs belong to POST /sites/{siteId}/event-types/batch. Publish your change with POST /sites/{siteId}/deployments.

Response

200 OK with the updated event type alone, in the shape list event types returns each entry in.

404 when no event type on the site carries that slug; 400 when the path slug is malformed.