update_course
Update an existing course in your LearnWorlds school by providing its ID and the fields to change. Returns the updated course resource.
Instructions
🟡 WRITE · updates data · PUT /v2/courses/{id}
Updates the course specified by the provided course id. The endpoint response is the updated Course 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 Courses tools: create_course_section, get_contents_course, get_course, get_course_grades, get_users_per_course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the course | |
| body | No | Request body (application/json). |