PATCH
/
v2
/
teams
/
{teamId}
/
memberships
/
{membershipId}
curl --request PATCH \
  --url https://api.cal.com/v2/teams/{teamId}/memberships/{membershipId} \
  --header 'Authorization: <authorization>' \
  --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"
      }
    }
  }
}

Headers

Authorization
string
required

value must be Bearer <token> where <token> is api key prefixed with cal_

Path Parameters

teamId
number
required
membershipId
number
required

Body

application/json
accepted
boolean
role
enum<string>
Available options:
MEMBER,
OWNER,
ADMIN
disableImpersonation
boolean

Response

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

"success"

data
object
required