Reorder event types
Set the display order of event types from the given slug order. The order carries through to the published site.
PATCH https://sitepaste.com/api/v1/public/sites/{siteId}/event-types
Requires the content scope.
To change one event type’s own fields, use PATCH /sites/{siteId}/event-types/{slug}.
Usage
curl -X PATCH https://sitepaste.com/api/v1/public/sites/default/event-types \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{ "order": ["breathwork", "sound-healing"] }'
Body
| Field | Type | Required | Description |
|---|---|---|---|
| order | array | Yes | Every listed slug must exist on the site; types not listed keep their current sort values. |
The site is named in the path, not the body. See addressing. To create, update, or delete event types, use the batch.
Response
204 No Content on success; 422 naming the order field if any slug does not exist.