Validate group slug
Validate if group slug is available or not.
POST
/
calendars
/
groups
/
validate-slug
Validate group slug
curl --request POST \
--url https://services.leadconnectorhq.com/calendars/groups/validate-slug \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"slug": "calendar-1"
}
'const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({locationId: 've9EPM428h8vShlRW1KT', slug: 'calendar-1'})
};
fetch('https://services.leadconnectorhq.com/calendars/groups/validate-slug', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/groups/validate-slug"
payload = {
"locationId": "ve9EPM428h8vShlRW1KT",
"slug": "calendar-1"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"available": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}Authorizations
Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Validate group slug
curl --request POST \
--url https://services.leadconnectorhq.com/calendars/groups/validate-slug \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "ve9EPM428h8vShlRW1KT",
"slug": "calendar-1"
}
'const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({locationId: 've9EPM428h8vShlRW1KT', slug: 'calendar-1'})
};
fetch('https://services.leadconnectorhq.com/calendars/groups/validate-slug', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/calendars/groups/validate-slug"
payload = {
"locationId": "ve9EPM428h8vShlRW1KT",
"slug": "calendar-1"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"available": true
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}