curl --request PATCH \
--url https://api.cal.com/v2/organizations/{orgId}/delegation-credentials/{credentialId} \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"serviceAccountKey": [
{
"private_key": "<string>",
"client_email": "<string>",
"client_id": "<string>"
}
]
}'
{
"status": "success",
"data": {
"id": "<string>",
"enabled": true,
"domain": "<string>",
"organizationId": 123,
"workspacePlatform": {
"name": "<string>",
"slug": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
For non-platform customers - value must be Bearer <token>
where <token>
is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The response is of type object
.
curl --request PATCH \
--url https://api.cal.com/v2/organizations/{orgId}/delegation-credentials/{credentialId} \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"serviceAccountKey": [
{
"private_key": "<string>",
"client_email": "<string>",
"client_id": "<string>"
}
]
}'
{
"status": "success",
"data": {
"id": "<string>",
"enabled": true,
"domain": "<string>",
"organizationId": 123,
"workspacePlatform": {
"name": "<string>",
"slug": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
curl --request PATCH \
--url https://api.cal.com/v2/organizations/{orgId}/delegation-credentials/{credentialId} \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"serviceAccountKey": [
{
"private_key": "<string>",
"client_email": "<string>",
"client_id": "<string>"
}
]
}'
{
"status": "success",
"data": {
"id": "<string>",
"enabled": true,
"domain": "<string>",
"organizationId": 123,
"workspacePlatform": {
"name": "<string>",
"slug": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
For non-platform customers - value must be Bearer <token>
where <token>
is api key prefixed with cal_
For platform customers - OAuth client secret key
For platform customers - OAuth client ID
The response is of type object
.
curl --request PATCH \
--url https://api.cal.com/v2/organizations/{orgId}/delegation-credentials/{credentialId} \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"serviceAccountKey": [
{
"private_key": "<string>",
"client_email": "<string>",
"client_id": "<string>"
}
]
}'
{
"status": "success",
"data": {
"id": "<string>",
"enabled": true,
"domain": "<string>",
"organizationId": 123,
"workspacePlatform": {
"name": "<string>",
"slug": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}