reactivate

abstract suspend fun reactivate(memberId: String): OrganizationsAdminMemberReactivateResponse

Reactivates a previously deleted member in the organization, restoring their access. Calls the PUT /sdk/v1/b2b/organizations/members/{member_id}/reactivate endpoint. Requires an active session and appropriate RBAC permissions.

Kotlin:

StytchB2B.members.admin.reactivate("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")

iOS:

let response = try await StytchB2B.members.admin.reactivate("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")

React Native:

StytchB2B.members.admin.reactivate("member-test-d5a3b680-e8a3-40c0-b815-ab79986666d0")

Return

OrganizationsAdminMemberReactivateResponse containing the reactivated member object.

Parameters

memberId

The unique ID of the member to reactivate.

Throws

StytchError

if the request fails or the caller lacks permission.

if the coroutine is cancelled.