ASI/groups

POST ^top

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

A descriptive text for the group (optional).

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 - There was an error in one or more parameters.

Response example


{
  "entry": {
    "number_of_members": 0,
    "created_at": null,
    "title": "An example group 1",
    "group_type": "open",
    "id": "avio1G6Cqr4lFdeJfcaj6R",
    "created_by": "avip2G6Cqr4lFdeJfcaj6R",
    "description": "Groups can have descriptions. This is an example."
  }
}
            

SUBRESOURCES ^top