ASI/groups

POST

Creates a new group. The creator is automatically added to the new group as an admin.

Parameters:

group
title The title (or name) of the group.
type Can be open, closed, personal or hidden.
description A descriptive text for the group (optional).
create_channel If set to true, a channel for the group is also created with same name as group's title.

Returns:

201 Created
400 Bad Request There was an error in one or more parameters.

Response example:

{
  "entry": {
    "number_of_members": 1,
    "created_at": "2010-09-03T10:32:49Z",
    "title": "Kxd5HnAn example group",
    "group_type": "open",
    "id": "czKx2QT0yr37cHaaWPfx7J",
    "created_by": "czFMqIT0yr37cHaaWPfx7J",
    "description": "Groups can have descriptions. This is an example."
  }
}

Subresources

 
Leave feedback:



Name (if you want):