---
title: "Associate repositories with projects"
method: PUT
path: "/api/v2/engineering-insights/repositories/projects"
tags: ["Insights repositories (beta)"]
---

# Associate repositories with projects

`PUT /api/v2/engineering-insights/repositories/projects`

Associate repositories with projects

## Request body

- InsightsRepositoryProjectMappings
  - `mappings` InsightsRepositoryProject[], required
    - `repositoryKey` string, required — The repository key
    - `projectKey` string, required — The project key

## Response `200`

Repositories projects response

- InsightsRepositoryProjectCollection
  - `totalCount` integer, required — Total number of repository project associations
  - `items` InsightsRepositoryProject[], required — List of repository project associations
    - `repositoryKey` string, required — The repository key
    - `projectKey` string, required — The project key
  - `_links` object — The location and content type of related resources

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
