---
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`

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.net/opengovern/apis/opengovernance-service-api.md) · [All operations](https://skmtc.net/opengovern/apis/opengovernance-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opengovern/opengovernance-service-api/revisions/ab05295c4094/schema)
