> For the complete documentation index, see [llms.txt](https://3commas.gitbook.io/3commas-official-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3commas.gitbook.io/3commas-official-api-docs/dca-bot/copy-dca-bot.md).

# Copy DCA Bot

<br>

**Description:** Copies the bot from or to another linked exchange account connected to 3Commas<br>

**Permission:** BOTS\_WRITE\
**Security:** SIGNED\ <br>

> <mark style="color:green;">**`POST`**</mark>
>
> `/ver1/bots/{bot_id}/copy_and_create`

<br>

## Path Parameter<br>

**bot\_id**     `integer`     <mark style="color:orange;">required</mark>\
Unique 3Commas ID for this DCA Bot entity you want to copy

<br>

## Body Parameters<br>

**name**     `string`     <mark style="color:orange;">required</mark>\
The name for new DCA Bot specified by the user

**secret**     `string`     <mark style="color:orange;">required</mark>\
A unique code used for copying this bot, retrieved from the `url_secret` parameter

**amount**     `number`\
Maximum amount allocated for bot usage. Calculated based on the current rate

<br>

## Response Parameters<br>

**bot\_id**     `integer`\
Unique 3Commas ID for this DCA Bot entity

**bot\_required\_amount**     `string`\
The minimum amount of funds required to launch this bot

<br>

## Example Request<br>

```json
POST /ver1/bots/12345678/copy_and_create
```

```json
Body:

{
   "name": "Name DCA Bot",
   "secret": "ab7b22d2f1"
}
```

<br>

## Example Response and Errors<br>

<details>

<summary>Status: 201 Created</summary>

<br>

```json
{
    "bot_id": 23456789,
    "bot_required_amount": 240
}

```

</details>

<details>

<summary>Status: 400 Bad Request</summary>

<br>

```json
{
    "error": "record_invalid",
    "error_description": "Invalid parameters",
    "error_attributes": {
        "name": [
            "is missing"
        ]
    }
}
```

</details>

<details>

<summary>Status: 401 Unauthorized</summary>

<br>

```json
{
    "error": "signature_invalid",
    "error_description": "Provided signature is invalid"
}
```

</details>
