x-jicoo-api-key or Authorization: Bearer .... X-Jicoo-Team is required when using Bearer authentication. Request body is flat (no eventType wrapper); provide only the fields to change and at least one field must be present.x-jicoo-api-key: ********************Authorization: ********************{
"name": "Updated event name",
"duration": 45,
"intervalMinutes": 15,
"availableUserType": "all",
"hostAssignType": "hostAssignRule",
"roundRobinAllocateType": "allocateWeighting",
"rescheduleType": "reassign",
"location": {
"isZoom": true,
"isGoogle": false
},
"eventTypeUsers": [
{
"userId": "user_uid_1",
"role": "admin",
"userType": "host",
"priority": 0
}
],
"form": {
"workflows": [
{
"uid": "wf_name",
"workflowType": "name",
"content": "Name",
"isRequired": true
},
{
"uid": "wf_email",
"workflowType": "email",
"content": "Email",
"isRequired": true
},
{
"uid": "wf_team_size",
"workflowType": "dropdown",
"content": "Team size",
"isRequired": true,
"choices": [
{
"uid": "c_1_10",
"value": "1-10"
},
{
"uid": "c_11_50",
"value": "11-50"
},
{
"uid": "c_51_plus",
"value": "51+"
}
]
},
{
"uid": "wf_interests",
"workflowType": "checkbox",
"content": "Interests",
"isRequired": false,
"choices": [
{
"uid": "c_sales",
"value": "Sales"
},
{
"uid": "c_marketing",
"value": "Marketing"
},
{
"uid": "c_support",
"value": "Support"
}
]
}
]
}
}curl --location --request PATCH '/v1/event_types/' \
--header 'X-Jicoo-Team;' \
--header 'x-jicoo-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated event name",
"duration": 45,
"intervalMinutes": 15,
"availableUserType": "all",
"hostAssignType": "hostAssignRule",
"roundRobinAllocateType": "allocateWeighting",
"rescheduleType": "reassign",
"location": {
"isZoom": true,
"isGoogle": false
},
"eventTypeUsers": [
{
"userId": "user_uid_1",
"role": "admin",
"userType": "host",
"priority": 0
}
],
"form": {
"workflows": [
{
"uid": "wf_name",
"workflowType": "name",
"content": "Name",
"isRequired": true
},
{
"uid": "wf_email",
"workflowType": "email",
"content": "Email",
"isRequired": true
},
{
"uid": "wf_team_size",
"workflowType": "dropdown",
"content": "Team size",
"isRequired": true,
"choices": [
{
"uid": "c_1_10",
"value": "1-10"
},
{
"uid": "c_11_50",
"value": "11-50"
},
{
"uid": "c_51_plus",
"value": "51+"
}
]
},
{
"uid": "wf_interests",
"workflowType": "checkbox",
"content": "Interests",
"isRequired": false,
"choices": [
{
"uid": "c_sales",
"value": "Sales"
},
{
"uid": "c_marketing",
"value": "Marketing"
},
{
"uid": "c_support",
"value": "Support"
}
]
}
]
}
}'{
"data": {
"uid": "string",
"slug": "string",
"name": "string",
"description": "string",
"coverImage": "string",
"color": "string",
"duration": 0,
"status": "enable",
"internalNote": "string",
"locations": [
{
"locationId": "inPerson"
}
],
"questions": [
{
"property1": "string",
"property2": "string"
}
],
"services": [
{
"property1": "string",
"property2": "string"
}
],
"paymentMethods": [
{
"methodType": "none"
}
],
"availableUserType": "all",
"hostAssignType": "none",
"hostAssignRules": [
{
"property1": "string",
"property2": "string"
}
],
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
}