curl --request PATCH \
--url https://api.cal.com/v2/event-types/{eventTypeId}/private-links/{linkId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"expiresAt": "2024-12-31T23:59:59.000Z",
"maxUsageCount": 10
}
'{
"status": "success",
"data": {
"linkId": "abc123def456",
"eventTypeId": 123,
"isExpired": false,
"bookingUrl": "https://cal.com/d/abc123def456/30min",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}curl --request PATCH \
--url https://api.cal.com/v2/event-types/{eventTypeId}/private-links/{linkId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"expiresAt": "2024-12-31T23:59:59.000Z",
"maxUsageCount": 10
}
'{
"status": "success",
"data": {
"linkId": "abc123def456",
"eventTypeId": 123,
"isExpired": false,
"bookingUrl": "https://cal.com/d/abc123def456/30min",
"expiresAt": "2025-12-31T23:59:59.000Z"
}
}value must be Bearer <token> where <token> is api key prefixed with cal_ or managed user access token
Response status
"success"
Updated private link data (either time-based or usage-based)
Show child attributes
The private link ID
"abc123def456"
Event type ID this link belongs to
123
Whether the link is currently expired
false
Full booking URL for this private link
"https://cal.com/d/abc123def456/30min"
Expiration date for this time-based link
"2025-12-31T23:59:59.000Z"
Was this page helpful?