v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Clone code repo

Clone code repo for multi branch scanning

post/repositories/code/clone

Request body

code_repo_idinteger required

The ID of the code repo

branchstring required

The other branch Aikido should scan

Example request

{
  "code_repo_id": 1,
  "branch": "staging"
}

Response

The code repo has been cloned and multi branch scanning has been set up.

successinteger

The integer 1 indicating success

code_repo_idinteger

The id of the newly created code repo

Example response

{
  "success": 1,
  "code_repo_id": 2
}