---
name: "getGroupDpsInfos"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.5.2" }
title: "getGroupDpsInfos - Get All DP Information of Group Devices"
---

## getGroupDpsInfos

> [VERSION] @ray-js/ray >= 1.5.2

### Description

Get all DP information for a group device, typically to retrieve group DP names, used with updateGroupDpName

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `groupId` | `string` | Yes | Group ID |

### Return Value

Type: `Promise<IGetGroupDpsInfosResponse>`

DP info object containing code, dpId, value, name, time, type

##### IGetGroupDpsInfosResponse

| Property | Type | Description |
| --- | --- | --- |
| `code` | `string` | DP Code |
| `dpId` | `number` | DP ID |
| `value` | `string` | DP value |
| `name` | `string` | DP name |
| `time` | `number` | DP last reported time |
| `type` | `string` | DP type |

### Examples

#### Basic usage

```ts
import { getGroupDpsInfos } from '@ray-js/ray';

getGroupDpsInfos('1').then((response) => {
  console.log('Group DP info:', response);
}).catch((err) => {
  console.error(err);
});
```
