curl --request POST \
--url https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"duration": 45,
"is_default": false
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({duration: 45, is_default: false})
};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations"
payload = {
"duration": 45,
"is_default": False
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Duration created successfully",
"duration": {
"id": "4ece6b6b-4b5f-4c15-9122-a85af189198c",
"duration": 30,
"is_default": true,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
}Create meeting duration
Create a duration option for a scheduling link.
curl --request POST \
--url https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"duration": 45,
"is_default": false
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({duration: 45, is_default: false})
};
fetch('https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetocal.com/api/external/v1/meetings/{meeting_sid}/durations"
payload = {
"duration": 45,
"is_default": False
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Duration created successfully",
"duration": {
"id": "4ece6b6b-4b5f-4c15-9122-a85af189198c",
"duration": 30,
"is_default": true,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
}{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
The unique identifier (SID) of the scheduling link you want to use. You can get sid in different ways. Visit the scheduling link page and then click on "Settings" > "Show SID". That will give you sid. You can also get this from the response of the List scheduling links endpoint, where it appears as the sid property for each scheduling link in the response.
"vj5pgkh"
Body
Response
OK - Request succeeded
"Duration created successfully"
Hide child attributes
Hide child attributes
Unique identifier for the duration.
"4ece6b6b-4b5f-4c15-9122-a85af189198c"
The duration in minutes (1-1440).
1 <= x <= 144030
Whether this duration is the default option.
true
Timestamp when the duration was created.
"2025-01-15T10:30:00Z"
Timestamp when the duration was last updated.
"2025-01-15T10:30:00Z"