Scope event-types:read for reads · event-types:write for changes
Operations
| GET | /v1/event-types | List — see list |
| POST | /v1/event-types | Create — see create |
| GET | /v1/event-types/{id} | Read — see get |
| PATCH | /v1/event-types/{id} | Update — see update |
| DELETE | /v1/event-types/{id} | Delete — see delete |
Minimal create
curl -X POST https://api2.djcsystem.com/v1/event-types \
-H "Authorization: Bearer $DJC_TOKEN" -H "Content-Type: application/json" \
-d '{ "name": "…", "duration": 0 }'Fields
Fields you may send on create. Updatable marks fields accepted by PATCH. Anything not listed is server-owned or hidden.
| Field | Type | On create | Updatable |
|---|---|---|---|
name | string | required | yes |
duration | number | required | yes |
description | string | optional | yes |
isActive | boolean | optional | yes |
color | string | optional | yes |
bufferTime | number | optional | yes |
locationType | enum(in_person|phone|video) | optional | yes |
price | number | optional | yes |
capacity | number | optional | yes |
timezone | string | optional | yes |
workingHours | array<object> | optional | yes |
Filters & sorting
| Filterable | isActive |
| Sortable | none — records come in id order |
| Default order | id order |