The identifier of the organization.
Leave an organization
DELETE
/user/v1/organizations/{organizationId}:leaveLeave organization. This allows a user to remove themselves from an organization without have permission to manage the organization.
Returns
No response data.
curl https://api.userhub.com/user/v1/organizations/org_28seyVGVL1got6:leave \
-H "UserHub-Api-Key: $USERHUB_USER_KEY" \
-H "Authorization: Bearer $USER_ACCESS_TOKEN" \
-X DELETE
const res = await userApi.organizations.leave(
"org_28seyVGVL1got6",
);
res, err := userApi.Organizations().Leave(
context.Background(),
"org_28seyVGVL1got6",
nil,
)
$res = $userApi->organizations->leave(
organizationId: 'org_28seyVGVL1got6',
);
res = user_api.organizations.leave(
organization_id="org_28seyVGVL1got6",
)