---
title: pydo.harness.create_config_clone()
description: Clone an Environment Config under a new name.
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/harness/create_config_clone/
last_updated: "2026-11-20"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.harness.create_config_clone()

Generated on 20 Nov 2026 from `pydo` version [`v0.47.0`](https://github.com/digitalocean/pydo/releases/tag/v0.47.0)

## Usage

```python
client.harness.create_config_clone(
    config_id="019fb39c-14d9-7080-933e-b9b90e25acda",
    body={
        "name": "your_name",
        "secrets": {...},
        "oauth_assignments": {...},
    },
)
```

Returns `JSON` Raises `HttpResponseError`

## Description

Copies the source config’s sanitized manifest to a new UUID. Source and clone are independent (no lineage). Credential bindings are never copied: if the manifest declares secret slots, supply secrets/oauth_assignments again (write-only). content_hash matches the source when the manifest is unchanged.

## Parameters

`config_id` string required

Example: `019fb39c-14d9-7080-933e-b9b90e25acda`

The Environment Config UUID.

`name` string required

New config name, unique among the team's active configs.

Min length: `1`

Max length: `64`

`secrets` object optional

Write-only map from tenantSecret logical slot to plaintext. Required when the source declares those slots; never copied from the source.

`oauth_assignments` object optional

Write-only map from oauth logical slot to an OAuth assignment UUID. Required when the source declares those slots; never copied from the source.

## Request Sample

## Show Request Sample

```python
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "name": "string"
}

resp = client.harness.create_config_clone(config_id="019fb39c-14d9-7080-933e-b9b90e25acda", body=req)
```

## Response Example

## Show Response Example

```json
{
  "config": {
    "id": "019fb39c-14d9-7080-933e-b9b90e25acda",
    "name": "support-agent",
    "agentspec_schema_version": "agents.digitalocean.com/v1alpha1",
    "content_hash": "75803fef24dc731824ecd4a1853c76153c7d8503534092b94da3ca3f31a882f4",
    "created_by": "user-1",
    "created_at": "2026-08-01T12:00:00Z",
    "updated_at": "2026-08-01T12:00:00Z",
    "credentials": [],
    "region": "ric1"
  }
}
```

## More Information

See [`/v2/harness-runtime/configs/{config_id}/clone`](https://docs.digitalocean.com/reference/api/reference/harness-runtime/index.html.md#harness_create_config_clone) in the API reference for additional detail on responses, headers, parameters, and more.