update_user_group
Modify an existing LearnWorlds user group by sending updated fields like title, products, managers, and enrollment rules. Apply changes to a current group record without creating a new one.
Instructions
🟡 WRITE · updates data · PUT /v2/user_groups/{id}
Updates a user group. The endpoint response is the updated user group 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.
Parameters: the whole JSON payload goes in the single body argument, forwarded verbatim (the spec leaves body optional, but this endpoint expects one).
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 User groups tools: add_user_user_group, deletes_user_group, get_user_group, get_users_user_group, remove_user_user_group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the user group | |
| body | No | Request body (application/json). |