curl --request POST \
--url https://services.leadconnectorhq.com/calendars/resources/{resourceType} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"outOfService": 123,
"capacity": 123,
"calendarIds": [
"<string>"
]
}
'{
"locationId": "<string>",
"name": "yoga room",
"resourceType": "equipments",
"isActive": true,
"calendarIds": [
"Jsj0xnlDDjw0SuvX1J13",
"oCM5feFC86FAAbcO7lJK"
],
"description": "<string>",
"quantity": 123,
"outOfService": 0,
"capacity": 85
}Create calendar resource by resource type
curl --request POST \
--url https://services.leadconnectorhq.com/calendars/resources/{resourceType} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "<string>",
"name": "<string>",
"description": "<string>",
"quantity": 123,
"outOfService": 123,
"capacity": 123,
"calendarIds": [
"<string>"
]
}
'{
"locationId": "<string>",
"name": "yoga room",
"resourceType": "equipments",
"isActive": true,
"calendarIds": [
"Jsj0xnlDDjw0SuvX1J13",
"oCM5feFC86FAAbcO7lJK"
],
"description": "<string>",
"quantity": 123,
"outOfService": 0,
"capacity": 85
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-04-15 Calendar Resource Type
equipments, rooms Quantity of the equipment.
Quantity of the out of service equipment.
Capacity of the room.
Service calendar IDs to be mapped with the resource.
One equipment can only be mapped with one service calendar.One room can be mapped with multiple service calendars.
100Calendar resource created
Location ID of the resource
Name of the resource
"yoga room"
equipments, rooms Whether the resource is active
Calendar IDs
[
"Jsj0xnlDDjw0SuvX1J13",
"oCM5feFC86FAAbcO7lJK"
]Description of the resource
Quantity of the resource
Indicates if the resource is out of service
0
Capacity of the resource
85
Was this page helpful?