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": "<string>",
  "setup_steps": {
    "_RepoSetupStepsT__setup_steps_format_version": "<string>",
    "repo_note": "<string>",
    "repo_commands": [
      {
        "commands": [
          "<string>"
        ],
        "project_path": "<string>",
        "status": "verified",
        "type": "pull_repo",
        "default_branch": "<string>",
        "description": "<string>",
        "locked": true,
        "repo_path": "<string>"
      }
    ],
    "repo_projects": [
      {
        "path": "<string>"
      }
    ]
  },
  "startup_commands": [
    "<string>"
  ]
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "org_id": "<string>",
  "snapshot_id": "<string>",
  "snapshot_name": "<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
string
erforderlich
setup_steps
RepoSetupStepsT · object
startup_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

snapshot_name
string
erforderlich

Name 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)