Skip to content
Connect an agent

Organisations

Map a diagram to a control, or take a suggested one off

One override of the controls a diagram's format suggests: add, remove, or null to return to the suggestion.

PUT/orgs/{org}/evidence/controls

TL;DR

QuestionAnswer
What does it do?Map a diagram to a control, or take a suggested one off.
What does it take?A JSON body of type EvidenceControlBody.
What does it return?Status 204 with no body.
What can go wrong?400 the body is not valid; 401 not signed in; 403 a member or a reader (orgs.forbidden), a plan without compliance evidence (plan.compliance_evidence_not_included), or an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

One override of the controls a diagram's format suggests: add, remove, or null to return to the suggestion. The owner and admins, on Enterprise. Audited.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Request body

The body has the type EvidenceControlBody.

FieldTypeRequiredDescription
repositorystringyesThe repository, as owner/name. at most 140 characters; pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,38}\/[A-Za-z0-9._-]{1,100}$.
diagramstringyesThe diagram: a source name, or mermaid:<finding id> for a hand-drawn one. at least 1 character; at most 160 characters; pattern ^[^\p{Cc}]+$/u.
control"pci-dss:1.2.3" | "pci-dss:1.2.4" | "soc2:CC2.1" | "soc2:CC8.1" | "iso27001:A.5.9" | "iso27001:A.8.9" | "nist-800-53:CM-8" | "nist-800-53:PL-2"yesA control: <framework>:<control>, such as pci-dss:1.2.4.
mode"add" | "remove" | nullyesadd maps the diagram to the control, remove takes a suggested one off, and null returns it to its suggestion.

Responses

StatusMeaningBody
204Saved.none
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403A member or a reader (orgs.forbidden), a plan without compliance evidence (plan.compliance_evidence_not_included), or an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools