Creates a new event type

POST {{baseUrl}}/event-types

Request Body

{"title"=>"Tennis class", "slug"=>"tennis-class-{{$guid}}", "length"=>60, "hidden"=>true, "position"=>0, "eventName"=>nil, "timeZone"=>nil, "periodType"=>"UNLIMITED", "periodStartDate"=>nil, "periodEndDate"=>nil, "periodDays"=>nil, "periodCountCalendarDays"=>nil, "requiresConfirmation"=>true, "disableGuests"=>false, "hideCalendarNotes"=>false, "minimumBookingNotice"=>120, "beforeEventBuffer"=>0, "afterEventBuffer"=>0, "schedulingType"=>nil, "price"=>0, "currency"=>"usd", "slotInterval"=>nil, "successRedirectUrl"=>nil, "description"=>nil, "locations"=>[{"address"=>"London", "type"=>"inPerson"}], "metadata"=>{}}

RESPONSES

status: OK

{"event_type":{"id":129,"title":"Tennis class","slug":"tennis-class-63473d2d-5c0d-4663-a695-da4b8566df39","length":60,"hidden":false,"position":0,"userId":4,"teamId":3,"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":{},"seatsPerTimeSlot":null,"seatsShowAttendees":false,"bookingFields":null},"message":"Event type created successfully"}