Groups
Overview
Groups are used to assign collections of user to specific channels, roles and other common settings.
Get All Groups
Get information about all of you team's groups.
GET
/groups
GET
/groups
Pagination
The maximum number of groups that will be returned in a single request is 100. If there are more than 100 groups you can specify a page
parameter great than 1 to get more data. The response will contain information about how many pages of data are available.
Query Parameters
Success Response
A successful response will have an HTTP status of 200
Response Properties
Example response
The sample response below indicates that you have received the second page of results. There are 2 pages available. The current page contains 21 of the total 121 groups.
Create Group
Create a new group.
POST
/groups
POST
/groups
Body Parameters
Example Request Body
Success Response
A successful group creation response will have an HTTP status of 201
created
. The payload of the response is the same as you will see when requesting information about a specific group.
Error Response
If there was a problem creating the group you will receive a response that contains status and message properties.
Example error response:
Get Specified Group
Get information about a specific group
GET
/groups/{group_id}
GET
/groups/{group_id}
Path Parameters
Success Response
A successful get response will have an HTTP status of 200
Response Properties
Example Response Body
Update Group
Update a specified group.
POST
/groups/{group_id}
POST
/groups/{group_id}
Path Parameters
Body Parameters
See Create Group Body Parameters.
Success Response
A successful group update response will have an HTTP status of 200
. The payload of the response is the same as you will see when creating a group.
Delete Group
Delete a specified group.
DELETE
/groups/{group_id}
DELETE
/groups/{group_id}
Path Parameters
Success Response
A successful group soft delete will have an HTTP status of 200
. The body of the response will also contain information about the group that was deleted.
Last updated