# Clone a project step

Source: https://www.jawsdeploy.net/rest-api/project-step-clone | Section: Project Steps

Copy an existing step into the same or another project.

`POST /api/project/step/clone`

Copies a step from one project to another (or duplicates within the same project). The cloned step appears at the end of the target project's step list.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `sourceProjectStepId` | body | string | yes | ID of the source step. |
| `targetProjectId` | body | string | yes | ID of the target project. |
| `name` | body | string | no | Override name for the cloned step. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid source or target. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
POST /api/project/step/clone

{ "sourceProjectStepId": "ps_1", "targetProjectId": "prj_def456" }
```

Example response:

```
{ "projectStepId": "ps_2" }
```

