---
name: "openGroupEdit"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.3.1" }
platform:
  - "iOS"
  - "Android"
async: true
---

## openGroupEdit

> [VERSION] DeviceKit >= 2.3.1

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Navigate to the group edit page

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `groupId` | `string` | Yes | - | `2.3.1` | groupId Group ID |
| `complete` | `() => void` | No | - | - | Callback invoked when the API call completes (executed on success or failure) |
| `success` | `() => void` | No | - | - | Callback invoked when the API call succeeds |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Callback invoked when the API call fails |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extensions |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Extended error code |
| `errorMsg` | `string` | Extended error information |


### Examples

#### Demo

```tsx
ty.device.openGroupEdit({
  groupId: "15633809",
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
