Zum Hauptinhalt springen
POST
/
v2
/
enterprise
/
organizations
/
{org_id}
/
clone
Repository klonen
curl --request POST \
  --url https://api.devin.ai/v2/enterprise/organizations/{org_id}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repo_path": "<string>",
  "pull_repo_commands": [
    "<string>"
  ],
  "repo_note": "<string>",
  "run_lint_commands": [
    "<string>"
  ],
  "run_project_commands": [
    "<string>"
  ],
  "run_tests_commands": [
    "<string>"
  ],
  "update_dependencies_commands": [
    "<string>"
  ]
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "org_id": "<string>",
  "snapshot_id": "<string>",
  "status": "<string>",
  "ami_id": "<string>"
}
Erfordert den persönlichen API key eines Enterprise-Administrators. Klon t ein Git-Repository in einer Organisation und erstellt eine neue Snapshot-Version.

Autorisierungen

Authorization
string
header
erforderlich

Persönlicher API Key (apk_user_*) nur für Enterprise-Administratoren

Pfadparameter

org_id
string
erforderlich

Body

application/json
repo_path
string
erforderlich

Repository-Pfad im Format „owner/repo_name“ (z. B. „acme/my-project“)

Beispiel:

"owner/repo_name"

pull_repo_commands
string[] | null

Befehle zum Pull des Repositories. Es empfiehlt sich, dieses Feld leer zu lassen, da es automatisch generiert wird.

repo_note
string | null
run_lint_commands
string[] | null
run_project_commands
string[] | null
run_tests_commands
string[] | null
update_dependencies_commands
string[] | null

Antwort

Erfolgreiche Antwort

Antwort auf die Erstellung eines Snapshots.

created_at
string<date-time>
erforderlich

Zeitstempel der Erstellung des Snapshots

org_id
string
erforderlich

Organisations-ID, zu der der Snapshot gehört

snapshot_id
string
erforderlich

ID des erstellten Snapshots

status
string
erforderlich

Status des Snapshots (z. B. „pending“, „available“)

ami_id
string | null

AMI-ID des Snapshots (kann null sein, wenn er noch erstellt wird)