groups

Create

POST
Creates a new group. A group is a collection of users.

Request

This endpoint expects an object.
description
stringRequired
Description of the group.
name
stringRequired
Unique name of the group.
dynamic_group_info
map from strings to anyOptional
Information to define dynamic groups.
member_type
enumOptional
Type of the members in the group.
Allowed values: dev_userrev_user
owner
stringOptional
Owner of the group.
type
enumOptional
Type of the group.
Allowed values: dynamicstatic

Response

This endpoint returns an object
group
object
POST
1curl -X POST https://api.devrev.ai/groups.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "description": "description",
6 "name": "name"
7}'
200Successful
1{
2 "group": {
3 "id": "id",
4 "is_default": true,
5 "created_date": "2023-01-01T12:00:00Z",
6 "description": "description",
7 "display_id": "display_id",
8 "member_type": "dev_user",
9 "modified_date": "2023-01-01T12:00:00Z",
10 "name": "name"
11 }
12}