Controls

Define a control test

POST
/organizations/{organizationId}/controls/{controlId}/tests

Creates a new test definition for a control.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string
controlId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/string/controls/string/tests" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "organizationId": "string",  "controlId": "string",  "name": "string",  "description": "string",  "required": true,  "cadence": "continuous",  "expectedEvidenceType": "document",  "monitorKey": "string",  "status": "active",  "lastRunResult": "pass",  "lastRunAt": "string",  "lastRunDetail": "string",  "lastRunProvider": "string",  "lastRunFailingGroups": [    {      "checkKey": "string",      "count": 0,      "sample": [        {          "resourceType": "string",          "resourceId": "string",          "accountId": "string",          "region": "string"        }      ]    }  ],  "lastRunFailingCount": 0,  "dateCreated": null,  "dateUpdated": null,  "property1": null,  "property2": null}