---
url: https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/
title: "Managing Sharing Groups\n                #"
description: "Each of group has its own name and generated ID. Maximum number of signs in the name of the group is 40 . Requests to work directly with the group: sharing grou"
lang: uk
updated: 2026-09-08T15:42:06.182Z
---

# Managing Sharing Groups [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#managing-sharing-groups)

Each of group has its own name and generated ID.

> Maximum number of signs in the name of the group is _40_.

Requests to work directly with the group:

-   [sharing-group/create-group](#sharing-group-create-group)
-   [sharing-group/update-group](#sharing-group-update-group)
-   [sharing-group/delete-group](#sharing-group-delete-group)

## sharing-group/create-group [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#sharing-group-create-group)

At first, you have to create the group. The current request is used for this.

### Request [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#request)

| Request Method | Content Type | Request URL |
| :-- | :-- | :-- |
| `POST` | `Form Data` | `https://gudhub.com/GudHub/api/sharing-group/create-group` |

It transfers user token, name of the group and its privacy setting.

| Property | Type | Description |
| :-- | :-- | :-- |
| token | `string` | _using to getting the access to the group_ |
| group\_name | `string` | _name of the group that will be created_ |
| private | `boolean` | _optional, defines whether the group is private; defaults to `false`_ |

#### **Example Request:** [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#example-request)

Copy

```json
    token: gvydsjtynywadogvejv_bawqlztqfjabdyuhrsnref
    group_name: Test
    private: true
```

### Response [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#response)

In response, an object with the generated ID, the entered name and the privacy setting of the new group is returned.

Copy

```json
{
    "group_id": 5,
    "group_name": "Test",
    "private": true
}
```

### Status Code [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#status-code)

| Status Code | Message |
| :-- | :-- |
| 200 | group is created |
| 600 | data too long for column 'group\_name' at row 1 |
| 601 | incorrect string value: '\\xF0\\x9F\\x98\\x83' for column 'group\_name' at row 1 |

## sharing-group/update-group [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#sharing-group-update-group)

When a user wants to change the name of the group, an update request is sent.

### Request [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#request-1)

| Request Method | Content Type | Request URL |
| :-- | :-- | :-- |
| `POST` | `Form Data` | `https://gudhub.com/GudHub/api/sharing-group/update-group` |

This request contains the user token, ID and new name of the group to be updated.

| Property | Type | Description |
| :-- | :-- | :-- |
| token | `string` | _using to getting the access to the group_ |
| group\_name | `string` | _new name of the group that will be updated_ |
| group\_id | `number` | _ID of the group that will be updated_ |

#### **Example Request:** [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#example-request-1)

Copy

```json
    token: gvydsjtynywadogvejv_bawqlztqfjabdyuhrsnref
    group_id: 5
    group_name: Updated group name
```

### Response [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#response-1)

This request returns the name and ID of the group just updated.

Copy

```json
{
    "group_id": 5,
    "group_name": "Updated group name"
}
```

### Status Code [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#status-code-1)

| Status Code | Message |
| :-- | :-- |
| 200 | group is updated |
| 600 | incorrect string value: '\\xF0\\x9F\\x98\\x83' for column 'group\_name' at row 1 |
| 601 | data too long for column 'group\_name' at row 1 |
| 710 | access is not allowed |

## sharing-group/delete-group [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#sharing-group-delete-group)

The current request is to delete the existed group.

### Request [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#request-2)

| Request Method | Content Type | Request URL |
| :-- | :-- | :-- |
| `POST` | `Form Data` | `https://gudhub.com/GudHub/api/sharing-group/delete-group` |

The request consists of the user token and the identifier of the group to be deleted.

| Property | Type | Description |
| :-- | :-- | :-- |
| token | `string` | _using to getting the access to the group_ |
| group\_id | `number` | _ID of the group that will be deleted_ |

#### **Example Request:** [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#example-request-2)

Copy

```json
    token: gvydsjtynywadogvejv_bawqlztqfjabdyuhrsnref
    group_id: 5
```

### Response [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#response-2)

In response, the user will get the ID and name of the just deleted group.

Copy

```json
{
    "group_id": 5,
    "group_name": "Updated group name"
}
```

### Status Code [#](https://gudhub.com/docs/rest-api/sharing-folder/group-sharing/managing-sharing-groups/#status-code-2)

| Status Code | Message |
| :-- | :-- |
| 200 | group is deleted |
| 600 | attempt to create delete event with null entity |
| 710 | access is not allowed |
