Clone code repo

Clone code repo for multi branch scanning

post/repositories/code/clone

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/repositories/code/clone
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: repositories:write

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
}

Changes

No recorded changes to this operation across all 1 revision of this API.