Managing communities
Creating a community
Required fields
| Field | Rules |
|---|---|
name | Required. The display name of the community. |
communityType | Required. Either general-community or topic-based-community. Immutable after creation. |
Optional fields
| Field | Rules |
|---|---|
description | Free-text description. |
isPrivate | Boolean. Defaults to false (public). Controls whether the community is discoverable without membership. |
communityTopic | Object with name and description. Required when communityType is topic-based-community, ignored otherwise. |
Topic-based communities and cohorts
Only topic-based communities can host cohorts. If you plan to use the Cohorts API, create the community with communityType: "topic-based-community".
Example — general community
POST /v1/communities
{
"name": "Engineering Hub",
"description": "A place for all engineers.",
"isPrivate": false,
"communityType": "general-community"
}
Example — topic-based community (cohort-ready)
POST /v1/communities
{
"name": "Leadership Academy",
"isPrivate": true,
"communityType": "topic-based-community",
"communityTopic": {
"name": "General",
"description": "General discussion"
}
}
The response is a Community object (see Community object).
Listing and getting communities
List — GET /v1/communities
| Query parameter | Description |
|---|---|
status | Filter by active or archived. |
visibility | Filter by public or private. |
q | Substring match on community name. |
limit | Page size (defaults apply). |
offset | Zero-based offset for pagination. |
The response is a paginated list of Community objects: { "data": [...], "total": N, "limit": N, "offset": N }.
Get single — GET /v1/communities/{communityId}
Returns a single Community object for the given communityId.
Updating a community
PATCH /v1/communities/{communityId}
Updates are partial: only the fields you include in the request body change. Updatable fields:
| Field | Notes |
|---|---|
name | The display name. |
description | Free-text description. |
isPrivate | Toggle between public and private. |
communityType and communityTopic are not updatable after creation.
Example
PATCH /v1/communities/42
{
"name": "Leadership Academy 2025",
"isPrivate": false
}
Returns the updated Community object.
Deleting a community
DELETE /v1/communities/{communityId}
Soft-deletes the community. The operation returns { "message": "..." } on success. A soft-deleted community is no longer accessible through the API.
Community object
| Field | Type | Description |
|---|---|---|
id | long | Unique identifier. |
name | string | Display name. |
description | string | Free-text description. |
slug | string | URL-friendly identifier. |
isPrivate | boolean | Whether the community is private. |
isEveryoneTeam | boolean | Whether this is the built-in "everyone" community. |
autoAssignContent | boolean | Whether new members receive content automatically. |
onlyAdminCanPost | boolean | Whether only admins may create posts. |
onlyAdminCanRestrict | boolean | Whether only admins may restrict content. |
isBackend | boolean | Whether this is an internal/backend community. |