---
title: "Create benchmark assignment"
method: POST
path: "/compliance/api/v1/assignments/{benchmark_id}/connection"
tags: ["benchmarks_assignment"]
---

# Create benchmark assignment

`POST /compliance/api/v1/assignments/{benchmark_id}/connection`

## Request

- Base URL: `https://api.opengovernance.io`
- URL: `https://api.opengovernance.io/compliance/api/v1/assignments/{benchmark_id}/connection`
- Auth: API key in header `Authorization`

Creating a benchmark assignment for a connection.

## Path parameters

- `benchmark_id` string, required

## Query parameters

- `auto_assign` boolean
- `integrationId` string[]
- `connectionGroup` string[]
- `resourceCollection` string[]

## Response `200`

OK

- GithubComOpengovernOpengovernancePkgComplianceApiBenchmarkAssignment[]
  - `assignedAt` string: Unix timestamp
  - `benchmarkId` string: Benchmark ID
  - `connectionId` string: Connection ID
  - `resourceCollectionId` string: Resource Collection ID

---

[API](https://skmtc.dev/opengovern/apis/opengovernance-service-api.md) - [All operations](https://skmtc.dev/opengovern/apis/opengovernance-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/opengovern/apis/opengovernance-service-api/revisions/ab05295c4094?raw)
