Create compliance control
POST
/v1/controls
const url = 'https://api.varman.io/v1/controls';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"Access Control","description":"Manages user access to systems","policyIds":["example"],"taskIds":["example"],"requirementMappings":[{"requirementId":"example","customRequirementId":"example","frameworkInstanceId":"example"}],"documentTypes":["board_meeting"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/controls \ --header 'Content-Type: application/json' \ --data '{ "name": "Access Control", "description": "Manages user access to systems", "policyIds": [ "example" ], "taskIds": [ "example" ], "requirementMappings": [ { "requirementId": "example", "customRequirementId": "example", "frameworkInstanceId": "example" } ], "documentTypes": [ "board_meeting" ] }'Create a custom compliance control and connect it to framework requirements, policies, tasks, and evidence expectations.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
Control name
string
Example
Access Controldescription
required
Control description
string
Example
Manages user access to systemspolicyIds
Policy IDs to connect
Array<string>
taskIds
Task IDs to connect
Array<string>
requirementMappings
Requirement mappings
Array<object>
object
requirementId
Platform requirement ID (exactly one of requirementId / customRequirementId must be set)
string
customRequirementId
Org-custom requirement ID (exactly one of requirementId / customRequirementId must be set)
string
frameworkInstanceId
required
Framework instance ID
string
documentTypes
Evidence form types to require on this control
Array<string>