PATCH
/
v2
/
organizations
/
{orgId}
/
memberships
/
{membershipId}
curl --request PATCH \
  --url https://api.cal.com/v2/organizations/{orgId}/memberships/{membershipId} \
  --header 'Content-Type: application/json' \
  --data '{
  "accepted": true,
  "role": "MEMBER",
  "disableImpersonation": true
}'
{
  "status": "success",
  "data": {
    "id": 123,
    "userId": 123,
    "teamId": 123,
    "accepted": true,
    "role": "MEMBER",
    "disableImpersonation": true,
    "user": {
      "avatarUrl": "<string>",
      "username": "<string>",
      "name": "<string>",
      "email": "<string>",
      "bio": "<string>",
      "metadata": {
        "key": "value"
      }
    },
    "attributes": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "value": "<string>",
        "valueId": "<string>"
      }
    ]
  }
}

Headers

Authorization
string

For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_

x-cal-secret-key
string

For platform customers - OAuth client secret key

x-cal-client-id
string

For platform customers - OAuth client ID

Path Parameters

orgId
number
required
membershipId
number
required

Body

application/json

Response

200 - application/json

The response is of type object.