# Variants API: CMDS

## POST /api/plugin/cmds/compliance-summaries

>

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"}},"schemas":{"ComplianceSummaryCriteria":{"type":"object","properties":{"Departments":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"Learners":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"Measurements":{"type":"array","items":{"type":"integer","format":"int32"},"nullable":true},"ProfileCondition":{"type":"integer","format":"int32"},"LearnerMustHaveProfile":{"type":"boolean"},"DepartmentEmployment":{"type":"boolean","nullable":true},"OrganizationEmployment":{"type":"boolean","nullable":true},"DataAccess":{"type":"boolean","nullable":true},"ZeroRequirementsProgressDisplay":{"type":"string","nullable":true}},"additionalProperties":false},"ComplianceSummaryModel":{"type":"object","properties":{"Department":{"$ref":"#/components/schemas/Model"},"Learner":{"$ref":"#/components/schemas/Model"},"PrimaryProfile":{"$ref":"#/components/schemas/Model"},"Measurement":{"$ref":"#/components/schemas/ComplianceSummaryMeasurement"}},"additionalProperties":false},"Model":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Slug":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true}},"additionalProperties":false},"ComplianceSummaryMeasurement":{"type":"object","properties":{"Key":{"type":"integer","format":"int32"},"Name":{"type":"string","nullable":true},"Score":{"type":"number","format":"double","nullable":true},"Required":{"type":"integer","format":"int32"},"Satisfied":{"type":"integer","format":"int32"},"Expired":{"type":"integer","format":"int32","nullable":true},"NotCompleted":{"type":"integer","format":"int32","nullable":true},"NotApplicable":{"type":"integer","format":"int32","nullable":true},"NeedsTraining":{"type":"integer","format":"int32","nullable":true},"SelfAssessed":{"type":"integer","format":"int32","nullable":true},"Submitted":{"type":"integer","format":"int32","nullable":true},"Validated":{"type":"integer","format":"int32","nullable":true}},"additionalProperties":false}}},"paths":{"/api/plugin/cmds/compliance-summaries":{"post":{"tags":["Variants API: CMDS"],"requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"text/json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceSummaryModel"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceSummaryModel"}}}}}}}}}}
```

## POST /api/variants/cmds/compliance-summaries

>

```json
{"openapi":"3.0.1","info":{"title":"Developer API","version":"v2.0.0"},"servers":[{"url":"/v2/e01"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"apiKey","description":"-","name":"Bearer","in":"header"}},"schemas":{"ComplianceSummaryCriteria":{"type":"object","properties":{"Departments":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"Learners":{"type":"array","items":{"type":"string","format":"uuid"},"nullable":true},"Measurements":{"type":"array","items":{"type":"integer","format":"int32"},"nullable":true},"ProfileCondition":{"type":"integer","format":"int32"},"LearnerMustHaveProfile":{"type":"boolean"},"DepartmentEmployment":{"type":"boolean","nullable":true},"OrganizationEmployment":{"type":"boolean","nullable":true},"DataAccess":{"type":"boolean","nullable":true},"ZeroRequirementsProgressDisplay":{"type":"string","nullable":true}},"additionalProperties":false},"ComplianceSummaryModel":{"type":"object","properties":{"Department":{"$ref":"#/components/schemas/Model"},"Learner":{"$ref":"#/components/schemas/Model"},"PrimaryProfile":{"$ref":"#/components/schemas/Model"},"Measurement":{"$ref":"#/components/schemas/ComplianceSummaryMeasurement"}},"additionalProperties":false},"Model":{"type":"object","properties":{"Type":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Slug":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true}},"additionalProperties":false},"ComplianceSummaryMeasurement":{"type":"object","properties":{"Key":{"type":"integer","format":"int32"},"Name":{"type":"string","nullable":true},"Score":{"type":"number","format":"double","nullable":true},"Required":{"type":"integer","format":"int32"},"Satisfied":{"type":"integer","format":"int32"},"Expired":{"type":"integer","format":"int32","nullable":true},"NotCompleted":{"type":"integer","format":"int32","nullable":true},"NotApplicable":{"type":"integer","format":"int32","nullable":true},"NeedsTraining":{"type":"integer","format":"int32","nullable":true},"SelfAssessed":{"type":"integer","format":"int32","nullable":true},"Submitted":{"type":"integer","format":"int32","nullable":true},"Validated":{"type":"integer","format":"int32","nullable":true}},"additionalProperties":false}}},"paths":{"/api/variants/cmds/compliance-summaries":{"post":{"tags":["Variants API: CMDS"],"requestBody":{"content":{"application/json-patch+json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"text/json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ComplianceSummaryCriteria"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceSummaryModel"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComplianceSummaryModel"}}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shiftiq.com/developers/api-v2/navigating-the-api/variants-api-cmds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
