unsuspend_user
Restore a suspended user's access in LearnWorlds by providing their user ID or email. This action updates the live school record and returns the unsuspended user resource.
Instructions
๐ก WRITE ยท updates data ยท PUT /v2/users/{id}/unsuspend
Unsuspends a user. The endpoint response is the unsuspended User resource.
Behavior: replaces the fields you send on an existing record in the live school. Idempotent: repeating it leaves the same state. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload โ 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: only when the user asked to change an existing record. Read it first so you overwrite just the fields you mean to; use the create tool if it does not exist yet. Related Users tools: enroll_user_product, get_courses_enrollments_user, get_products_user, get_seat_offerings_that_user_is_member, get_user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User id or email (encoded string) |