Zum Hauptinhalt springen
POST
Repository klonen
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)