The Reactivate Member method wraps the Reactivate Member API endpoint. The organization_id will be automatically inferred from the logged-in Member's session. This method cannot be used to reactivate Members in other Organizations.
Reactivate a Member
Method parameters
member_id* string
Response fields
request_id string
status_code int
member_id string
member object
organization object
import { useStytchB2BClient } from '@stytch/react/b2b';
export const ReactivateMember = () => {
const stytch = useStytchB2BClient();
const reactivateMember = () => {
stytch.organization.members.reactivate('member-test-32fc5024-9c09-4da3-bd2e-c9ce4da9375f');
};
return <button onClick={reactivateMember}>Reactivate Member</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",
"member": {...},
"organization": {...}
}