add_user_seat_offering
Adds a user to a seat offering by ID and optionally assigns them a seat in that offering. Use when you need to enroll a user into a specific seat offering.
Instructions
🟡 WRITE · creates data · POST /v2/seats/{id}/users/{uid}
Add a user to the seat offering specified by the provided seat offering id. Additionally there is the option to assign the user a seat in the seat offering.
Behavior: creates a record or triggers an action in the live school. Not idempotent: a repeated call can duplicate the effect. 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 create this. Check with a 🟢 read tool that the target exists and the record is not already there. Related Multiple seats tools: remove_user_seat, get_users_seat_offering, delete_seat_offering, get_specific_seat_offering, update_seat_offering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the seat offering. | |
| uid | Yes | User Id or email (encoded string) | |
| body | No | Request body (application/json). |