Skip to main content
POST
Create CommunityGroup
A CommunityGroup is a named subset of customers used to control who can see and contribute to conversations on the Discussion Board. Groups are created by admins and can be assigned to CommunityThread conversations to restrict or open participation. Each group has an access level (GroupAccess) that determines visibility: Groups can also be auto-generated by the system: if a Team has HasCommunityGroup = true, a group is created and its GUID stored in TeamGuid; if a Course has HasCommunityGroup = true, a group is created and its GUID stored in CourseGuid.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CommunityGroup-Create role.

Enums

Request Body

Required Fields

integer
required
ID of the location this group belongs to.
integer
required
ID of the user account designated as the group administrator.
string
required
Display name of the group.
integer
required
Access level controlling who can see and post in this group’s conversations: Restricted (1) = all customers can see but only members post; Public (2) = all customers can see and post; Private (3) = members only.

Optional Fields

string
Short description of the group’s purpose shown to customers.
integer[]
IDs of customers who are members of this group.
string
GUID of the Team this group was created for. Set when the group was auto-generated because Team.HasCommunityGroup is true.
string
GUID of the Course this group was created for. Set when the group was auto-generated because Course.HasCommunityGroup is true.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the communitygroup was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response