> For the complete documentation index, see [llms.txt](https://doc.bitbrowser.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.bitbrowser.net/api-docs/groups.md).

# Groups

## goup list

<mark style="color:green;">`POST`</mark> `/group/list`

#### Request Body

| Name                                       | Type | Description |
| ------------------------------------------ | ---- | ----------- |
| page<mark style="color:red;">\*</mark>     | Int  | from 0      |
| pageSize<mark style="color:red;">\*</mark> | Int  | eg: 10      |

## add a new group

<mark style="color:green;">`POST`</mark> `/group/add`

Add group

#### Request Body

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| groupName<mark style="color:red;">\*</mark> | String |             |
| sortNum                                     | Int    | sort by asc |

## update group info

<mark style="color:green;">`POST`</mark> `/group/edit`

#### Request Body

| Name                                        | Type   | Description         |
| ------------------------------------------- | ------ | ------------------- |
| id<mark style="color:red;">\*</mark>        | String | group ID            |
| groupName<mark style="color:red;">\*</mark> | String |                     |
| sortNum                                     | Int    | sort by new sortNum |

## delete a exist group by id

<mark style="color:green;">`POST`</mark> `/group/delete`

#### Request Body

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String |             |

## get group detail

<mark style="color:green;">`POST`</mark> `/group/detail`

#### Request Body

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String |             |
