PATCH
/
v2
/
organizations
/
{orgId}
/
delegation-credentials
/
{credentialId}
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"
  }
}

Path Parameters

orgId
number
required
credentialId
string
required

Body

application/json
enabled
boolean
serviceAccountKey
array

Response

200 - application/json
status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required