The Unlink Member Retired Email Address method wraps the Unlink Retired Email API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to unlink emails of Members in other Organizations.
Unlink Member Retired Email Address
Method parameters
member_id* string
email_id string
email_address string
import { useStytchB2BClient } from '@stytch/react/b2b';
export const UnlinkRetiredEmail = () => {
const stytch = useStytchB2BClient();
const unlinkRetiredEmail = () => {
stytch.organization.members.unlinkRetiredEmail({ member_id: 'member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f', email_id: 'email-test-81bf03a8-86e1-4d95-bd44-bb3495224953' });
};
return <button onClick={unlinkRetiredEmail}>Unlink Retired Email</button>;
};
RESPONSE
200
{
"status_code": 200,
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"member_id": "member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f",
"organization_id": "organization-test-07971b06-ac8b-4cdb-9c15-63b17e653931",
"member": {...},
"organization": {...}
}