cURL
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", "user": { "email": "<string>", "avatarUrl": "<string>", "username": "<string>", "name": "<string>", "bio": "<string>", "metadata": { "key": "value" } }, "disableImpersonation": true } }
value must be Bearer <token> where <token> is api key prefixed with cal_
Bearer <token>
<token>
MEMBER
OWNER
ADMIN
success
error
"success"
Show child attributes
Was this page helpful?