Skip to main content
POST
Create CommunityGroup
A community group is a named customer group that controls who can view and post in Discussion Board conversations assigned to it.

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 community group belongs to.
integer
required
ID of the user account that administers this group; the administrator can always view and post in it.
string
required
Required display name of the community group.
integer
required
Access level for conversations assigned to this group: Restricted (1) lets all customers view but only the administrator and members post; Public (2) lets all customers view and post; Private (3) lets only the administrator and members view and post.

Optional Fields

string
Optional description of the community group’s purpose shown to customers.
integer[]
List of user IDs whose customers are group members; they can post in Restricted groups and view and post in Private groups, while the administrator always has access.
string
Internal GUID linking this automatically maintained group to its Team; change Team.HasCommunityGroup instead.
string
Internal GUID linking this automatically maintained group to its Course; change Course.HasCommunityGroup instead.

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