---
title: "API_CopyGroup"
slug: "api-copygroup"
updated: 2025-08-18T09:06:44Z
published: 2025-08-18T09:06:44Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.quickbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API_CopyGroup

**Don't forget to check out our**[**JSON RESTful APIs**](https://developer.quickbase.com/)**, they can help you utilize and extend Quickbase with ease.**

## Overview

Use API_CopyGroup to duplicate an existing group with the same list of users and subgroups, and a different name and ID.

## Request parameters

| Parameter | Value | Required? |
| --- | --- | --- |
| gid | The id of the group to manage. | yes |
| ticket | A valid authentication ticket. The authentication ticket is returned via the API_Authenticate call. | yes |
| udata | Optional: Contains any udata value supplied in the request. | no |
| name | The name of the new group. | yes |
| description | A description of the group. Default is the description of the source group. | no |
| gacct | The account used for the group. Default is the account for the source group. | no |

## Response values

| Element Name | Value |
| --- | --- |
| action | The originating request, for example, API_CopyGroup. |
| description | The description of the new group |
| errcode | Identifies the error code, if any. (See the [Error Codes appendix](/v1/docs/error-codes) for a list of possible error codes.) 0 indicates that no error was encountered. |
| errtext | Text that explains the error code. "No error" indicates that no error was encountered. |
| gid | The id of the new group. |
| name | The name of the new group. |
| ManagedbyUser | In this case, whether the user making the request manages the group. |
| udata | Optional. Contains any udata value supplied in the request. |

## Sample XML Request

```xml
POST https://target_domain/db/main HTTP/1.1
Content-Type: application/xml
Content-Length:
QUICKBASE-ACTION: API_CopyGroup

<qdbapi>
   <udata>misc data</udata>
   <ticket>auth_ticket</ticket>
   <gid>1213.dsfj</gid>
   <name>SalesTeamLeadsCopy</name>
   <description>Copy of the current Sales Team Leads Group</description>
</qdbapi>
```

## Sample HTTP Get Request

```plaintext
https://target_domain/db/main?a=API_CopyGroup&gid=1213.dsfj&name=SalesTeamLeadsCopy
&description=Copy%20ofthe%20current%20Sales%20Team%20Leads%20Group&ticket=auth_ticket
&udata=misc%20data
```

```xml
<qdbapi>
<action>API_CopyGroup</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<group id="1219.d47h">
<name>TestGroup</name>
<description>Copy of the current Sales Team Leads Group</description>
<managedByUser>true</managedByUser>
</group>
</qdbapi>
```
