---
title: "Clone Repo"
method: POST
path: "/v2/enterprise/organizations/{org_id}/clone"
tags: ["organizations"]
---

# Clone Repo

`POST /v2/enterprise/organizations/{org_id}/clone`

## Path parameters

- `org_id` string, required

## Request body

- CloneRepoRequest
  - `pull_repo_commands` string[], nullable — Commands to pull the repository. Recommended to leave blank as it is auto-generated.
  - `repo_note` string, nullable
  - `repo_path` string, required — Repository path in the format 'owner/repo_name' (e.g., 'acme/my-project')
  - `run_lint_commands` string[], nullable
  - `run_project_commands` string[], nullable
  - `run_tests_commands` string[], nullable
  - `update_dependencies_commands` string[], nullable

## Response `200`

Successful Response

- CreateRepoSnapshotResponse — Response from creating a snapshot.
  - `ami_id` string, nullable — AMI ID of the snapshot (may be null if still being created)
  - `created_at` string, date-time, required — Timestamp when the snapshot was created
  - `org_id` string, required — Organization ID the snapshot belongs to
  - `snapshot_id` string, required — ID of the created snapshot
  - `status` string, required — Status of the snapshot (e.g., 'pending', 'available')

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/devin/apis/devin-api-v1.md) · [All operations](https://skmtc.dev/devin/apis/devin-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devin/devin-api-v1/revisions/e3244476af1c/schema)
