---
title: "Create a new control"
method: POST
path: "/v1/controls"
tags: ["Controls"]
---

# Create a new control

`POST /v1/controls`

## Request body

- CreateControlDto
  - `name` string, required — Control name
  - `description` string, required — Control description
  - `policyIds` string[] — Policy IDs to connect
  - `taskIds` string[] — Task IDs to connect
  - `requirementMappings` RequirementMappingDto[] — Requirement mappings
    - `requirementId` string, required — Requirement ID
    - `frameworkInstanceId` string, required — Framework instance ID

## Response `201`

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/267b1aa90d52/schema)
