Event Types
These routes allow you to CRUD event types within Cal.com.
get
http://localhost:3002/v1
/event-types
Finds all event types
post
http://localhost:3002/v1
/event-types
Creates a new event type
get
http://localhost:3002/v1
/event-types/{id}
Find a eventType
200 OK
When successful, returns the event type object similar to the following:
{
"userId": 4,
"title": "Tennis class",
"slug": "tennis-class-a67efd34-f61d-4eb8-bbd1-ae2cbf407734",
"length": 60,
"hidden": false,
"position": 0,
"teamId": null,
"eventName": null,
"timeZone": null,
"periodType": "UNLIMITED",
"periodStartDate": null,
"periodEndDate": null,
"periodDays": null,
"periodCountCalendarDays": null,
"requiresConfirmation": true,
"recurringEvent": {
"interval": 2,
"count": 10,
"freq": 2
},
"disableGuests": false,
"hideCalendarNotes": false,
"minimumBookingNotice": 120,
"beforeEventBuffer": 0,
"afterEventBuffer": 0,
"schedulingType": null,
"price": 0,
"currency": "usd",
"slotInterval": null,
"successRedirectUrl": null,
"description": null,
"locations": [
{
"address": "London",
"type": "inPerson"
}
],
"metadata": {}
}
patch
http://localhost:3002/v1
/event-types/{id}
Edit an existing eventType
delete
http://localhost:3002/v1
/event-types/{id}
Remove an existing eventType
NOTE
This endpoint supports Admin queries. An admin can
GET
& POST
an event type for any user in their organization by simply providing a 'userId' Body Parameter referring to the user they wish to GET
or POST
the event type for. The PATCH
& DELETE
requests will work normally without any extra parameters.Last modified 2mo ago