Groups¶
On this page, you will find descriptions of the API methods intended for working with group of devices from the Permanent Access section.
Group List¶
You can get a list of all account groups using the groups/list method.
Device Grouping
Learn more about managing device groups in the guide Device Grouping.
Request:
Response:
Example Response
| Name | Type | Description |
|---|---|---|
id | number | Internal group identifier |
name | string | Group name |
Insert Device to Group¶
You can add a device to a group using the groups/agent/insert method.
Request:
| Parameter | Type | Value |
|---|---|---|
id | number | Internal system group ID |
agent_id | number | Internal system device ID |
Response:
| Name | Type | Description |
|---|---|---|
status | number | Result status. Possible values:
|
Remove Device from Group¶
You can remove a device from a group using the groups/agent/remove method.
Request:
| Parameter | Type | Value |
|---|---|---|
agent_id | number | Internal system device ID |
Response:
| Name | Type | Description |
|---|---|---|
status | number | Result status. Possible values:
|
Create Group¶
You can create a new group using the groups/create method.
Request:
| Parameter | Type | Value |
|---|---|---|
name | string | Name of the group to be created |
order | number | Position of the created group in the list |
Response:
| Name | Type | Description |
|---|---|---|
status | number | Result status. Possible values:
|
id | number | Internal system identifier of the created group. |
Edit Group¶
You can modify group properties using the groups/edit method.
Request:
| Parameter | Type | Value |
|---|---|---|
id | number | Internal group identifier |
name | string | New group name |
order | number | New position of the group in the list |
Response:
| Name | Type | Description |
|---|---|---|
status | number | Result status. Possible values:
|
Remove Group¶
You can remove a group using the groups/remove method.
Request:
| Parameter | Type | Value |
|---|---|---|
id | number | Internal group identifier |
Response:
| Name | Type | Description |
|---|---|---|
status | number | Result status. Possible values:
|