Navigation
Unsuspend a user
Clear a user's suspended flag so the is_suspended condition stops matching for them. Pass the user ID your application uses when it evaluates an action with the client SDK. Unsuspending a user who isn't suspended changes nothing and still returns the user.
Parameters
user string REQUIRED
The user ID your application uses to identify this user to Rupt.
Returns
Returns the user object with
suspended set to false. Returns 404 when no user with that ID exists in the environment your project secret belongs to.
POST/v3/user/:id/unsuspend
const user = await rupt.unsuspendUser({ user: "USER_ID" });
Response
{
"rupt_id": "649873be6e8b6f9b33722a0c",
"id": "external_account_id",
"email": "user@example.com",
"phone": "+15551234567",
"suspended": false
}