provider Organizations POST
/v1/b2b/organizations/{organization_id}/members/{member_id}/unlink_retired_email @utdk/stytch
/v1/b2b/organizations/{organization_id}/members/{member_id}/unlink_retired_email Unlinkretiredemail
Unlinks a retired email address from a Member specified by their `organization_id` and `member_id`. The email address
to be retired can be identified in the request body by either its `email_id`, its `email_address`, or both. If using
both identifiers they must refer to the same email.
A previously active email address can be marked as retired in one of two ways:
- It's replaced with a new primary email address during an explicit Member update.
- A new email address is surfaced by an OAuth, SAML or OIDC provider. In this case the new email address becomes the
Member's primary email address and the old primary email address is retired.
A retired email address cannot be used by other Members in the same Organization. However, unlinking retired email
addresses allows them to be subsequently re-used by other Organization Members. Retired email addresses can be viewed
on the [Member object](https://stytch.com/docs/b2b/api/member-object).
- organization_id path required
- Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
- string
- member_id path required
- Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
- string
- X-Stytch-Member-Session header
- A Stytch session that can be used to run the request with the given member's permissions.
- string
- X-Stytch-Member-SessionJWT header
- A Stytch Session JSON Web Token (JWT) that can be used to run the request with the given member's permissions.
- string
Try it
Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiOrganizationV1OrganizationsMembersUnlinkretiredemail()