update_community_space
Update community space details in LearnWorlds by supplying the space ID and fields to change. Modify title, access, permissions, sorting, or visibility without recreating the space.
Instructions
🟡 WRITE · updates data · PUT /v2/community/spaces/{id}
Updates the community space specified by the provided space id. The endpoint response is the updated community space 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 Community tools: add_invite_users_community_space, delete_community_space, get_community_space, get_users_community_space, remove_user_community_space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the community space | |
| body | No | Request body (application/json). |