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

# Clone project

> # Description

Clone a project.

# Response

## 201 Created

```json
{
   "id": string,
   "title": string
}
```

where:

* `id`: Id of the new project
* `title`: Title of the new project

## 400 Bad Request

> ProjectId, fromDate and/or toDate are missing.

## 401 Unauthorized

> The user doesn't have permissions.

## 500 Internal Server Error

> Error occurred while processing the request.

# Description

Clone a project.

# Response

## 201 Created

```json theme={null}
{
   "id": string,
   "title": string
}
```

where:

* `id`: Id of the new project
* `title`: Title of the new project

## 400 Bad Request

> ProjectId, fromDate and/or toDate are missing.

## 401 Unauthorized

> The user doesn't have permissions.

## 500 Internal Server Error

> Error occurred while processing the request.


## OpenAPI

````yaml POST /projects-api/v2/projects/{projectId}/clone
openapi: 3.0.3
info:
  title: SightX API
  version: 1.0.0
  description: >-
    SightX REST API documentation. Most responses are JSON; some export
    endpoints return files. API access is a paid add-on — contact
    sales@sightx.io for details.
servers:
  - url: https://auth.admin.sightx.io
    description: Authentication (Production)
  - url: https://auth.staging-admin.sightx.io
    description: Authentication (Staging)
security:
  - AuthorizationHeader: []
paths:
  /projects-api/v2/projects/{projectId}/clone:
    post:
      summary: Clone project
      description: |-
        # Description

        Clone a project.

        # Response

        ## 201 Created

        ```json
        {
           "id": string,
           "title": string
        }
        ```

        where:

        * `id`: Id of the new project
        * `title`: Title of the new project

        ## 400 Bad Request

        > ProjectId, fromDate and/or toDate are missing.

        ## 401 Unauthorized

        > The user doesn't have permissions.

        ## 500 Internal Server Error

        > Error occurred while processing the request.
      operationId: clone-project-post-projects-api-v2-projects-projectid-clone
      parameters:
        - name: Authorization
          in: header
          required: true
          description: Authorization token
          schema:
            type: string
      responses:
        '200':
          description: Successful response
        '201':
          description: Clone project
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                id: 6144b238ec80380d3543de70
                title: Name of the new project (copy)
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '500':
          description: Internal server error
      servers:
        - url: https://sx-projects.sightx.io
components:
  securitySchemes:
    AuthorizationHeader:
      type: apiKey
      in: header
      name: Authorization
      description: Access token obtained from the m2m-token endpoint.

````