Remove a member from an organization.
Remove a member
PreviewDELETE
/user/v1/organizations/{organizationId}/members/{userId}path parameters
Returns
No response data.
curl https://api.userhub.com/user/v1/organizations/org_28seyVGVL1got6/members/usr_MKFxzgJaAH8JQ4 \
-H "UserHub-Api-Key: $USERHUB_USER_KEY" \
-H "Authorization: Bearer $USER_ACCESS_TOKEN" \
-X DELETE
const res = await userApi.organizations.removeMember(
"org_28seyVGVL1got6",
"usr_MKFxzgJaAH8JQ4",
);
res, err := userApi.Organizations().RemoveMember(
context.Background(),
"org_28seyVGVL1got6",
"usr_MKFxzgJaAH8JQ4",
nil,
)
$res = $userApi->organizations->removeMember(
organizationId: 'org_28seyVGVL1got6',
userId: 'usr_MKFxzgJaAH8JQ4',
);
res = user_api.organizations.remove_member(
organization_id="org_28seyVGVL1got6",
user_id="usr_MKFxzgJaAH8JQ4",
)