Apply user availability schedule to a calendar
Associates a calendar with the given schedule by adding the calendarId to a schedule
PUT
/
calendars
/
schedules
/
{id}
/
associations
/
{calendarId}
Apply user availability schedule to a calendar
curl --request PUT \
--url https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'PUT',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId}"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.put(url, headers=headers)
print(response.text){
"success": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 400,
"message": "Bad Request"
}Authorizations
Path Parameters
Last modified on March 8, 2026
Was this page helpful?
Apply user availability schedule to a calendar
curl --request PUT \
--url https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'const options = {
method: 'PUT',
headers: {Version: '<version>', Authorization: 'Bearer <token>'}
};
fetch('https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/schedules/{id}/associations/{calendarId}"
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>"
}
response = requests.put(url, headers=headers)
print(response.text){
"success": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 400,
"message": "Bad Request"
}