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

# Create compliance control

`POST /v1/controls`

Create a custom compliance control and connect it to framework requirements, policies, tasks, and evidence expectations.

## 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 — Platform requirement ID (exactly one of requirementId / customRequirementId must be set)
    - `customRequirementId` string — Org-custom requirement ID (exactly one of requirementId / customRequirementId must be set)
    - `frameworkInstanceId` string, required — Framework instance ID
  - `documentTypes` string[] — Evidence form types to require on this control

## Response `201`

---

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