Update community (Admin)
/manage/communities/:idUpdate a community. Admins only.
| Auth | Login required |
|---|
Path parameters
idstringrequiredCommunity ID or slug.
Request body
namestringoptionalCommunity name (required); up to 50 characters.
joinTypestringoptionalOne of APPROVAL_REQUIRED / FREE_JOIN / INVITATION_ONLY.
visibilitystringoptionalOne of PUBLIC / PRIVATE / LIMITED.
descriptionstringoptionalDescription; up to 500 characters.
Localized name / description.
logoUrlstringoptionalLogo image URL; must be a valid URL.
Contact information.
tagsstring[]optionalArray of tag names.
slugstringoptional3–200 characters; lowercase alphanumerics, hyphens and underscores only (^[a-z0-9-_]+$). Must be unique.
logoDarkUrlstringoptionalDark-theme logo URL; must be a valid URL.
enabledChatbooleanoptionalWhether chat is enabled.
Custom navigation settings.
cardDesignstring | nulloptionalThe community's business card design: a background image ID (e.g. solid-07-h216) or "custom" to use a photo. "custom" requires a photo (cardPhoto). Send null to reset.
The photo for the community's business card and how it is shown (url, brightness and textColor are all required). url must be one returned by POST /manage/communities/:id/card-photo for the same community. Send null to remove the photo (not allowed while cardDesign is "custom").
Notes
cardDesign and cardPhoto are validated the same way as PUT /users/me. An unsupported design ID, a photo belonging to another community or a user, an external URL, or "custom" without a photo returns 400. When only one of them is sent, it is merged onto the saved setting before validation.
Response
Returns Community.
curl https://api.4s.link/manage/communities/ID \-X PUT \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"name": "Tech Community","enabledChat": true}'
{"id": "c1a2b3c4-...","slug": "tech-community","name": "Tech Community","description": "...","joinType": "FREE_JOIN","visibility": "PUBLIC","logoUrl": "https://.../logo.png","logoDarkUrl": null,"enabledChat": true,"cardDesign": "solid-07-h216","cardPhoto": null,"tags": []}