# Clone a project

Source: https://www.jawsdeploy.net/rest-api/projects-clone | Section: Projects

Clone an existing project into the same workspace.

`POST /api/project/clone`

Creates a copy of an existing project (steps, channels, settings) inside the same workspace. The optional `targetFolderId` controls placement.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `sourceProjectId` | body | string | yes | ID of the project to clone. |
| `targetFolderId` | body | string | no | Folder to place the clone in. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `sourceProjectId`. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
POST /api/project/clone

{ "sourceProjectId": "prj_abc123" }
```

Example response:

```
{ "projectId": "prj_clone456" }
```

