---
title: "Link code repository to container"
method: POST
path: "/containers/linkCodeRepo"
---

# Link code repository to container

`POST /containers/linkCodeRepo`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/containers/linkCodeRepo`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `containers:write`

Link code repository to container

## Request body

- object
  - `container_repo_id` integer, required: The ID of the container repo
  - `code_repo_id` integer, required: The ID of the code repository

## Response `200`

The code repository has been linked to the container.

- object
  - `success` integer: The integer 1 indicating success

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
