Skip to content

Group

Manage groups, which represent logical collections of users or entities.
You can create, update, delete, and search for groups with advanced filtering and pagination.

Version
2.0.0
OpenAPI version
3.0.0
POST
/v2/group/index

Returns a paginated and filterable list of groups.
Use POST to allow complex filters via JSON payload.

Parameters for searching groups

object
filter
object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort

The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order

string
history

The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.

boolean
Example
{
"filter": {
"name": "Safety Group"
},
"per-page": 10,
"page": 1,
"sort": "name"
}

List of groups

Array<object>
object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"group_id": "grp-1",
"name": "Safety Group",
"description": "Group for safety team",
"status": "active",
"created_at": 1700000000,
"updated_at": 1700000001
}
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

POST
/v2/group/create

Create a new group by providing the required details.

Group object to be created

object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"name": "New Group",
"description": "A new group for project members",
"status": "active"
}

Group created successfully

object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"group_id": "grp-2",
"name": "New Group",
"description": "A new group for project members",
"status": "active"
}
GET
/v2/group/view/{id}

Retrieve a group by its unique ID.

id
required
string format: uuid

ID of the group to retrieve

Group found

object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"group_id": "grp-1",
"name": "Safety Group",
"description": "Group for safety team",
"status": "active",
"created_at": 1700000000,
"updated_at": 1700000001
}

Group not found

DELETE
/v2/group/delete/{id}

Delete a group by its unique ID.
If force=true, all related entities will also be deleted.

id
required
string format: uuid

ID of the group to delete

force
boolean

Force the deletion of the entity and all related entities

Group deleted successfully

If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned

PUT
/v2/group/update/{id}

Update an existing group by its unique ID.

id
required
string format: uuid

ID of the group to update

Group object with updated data

object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"name": "Updated Group",
"description": "Updated description"
}

Group updated successfully

object
group_id
string
name
string
description
string
status
string
created_at
integer
updated_at
integer
Example
{
"group_id": "grp-1",
"name": "Updated Group",
"description": "Updated description"
}

Group not found