Add a control to a risk scenario
Associate a control with a risk scenario.
Body: { controlId, controlType? }. controlType is TREATMENT_PLAN for a control that is part of the risk's treatment plan; omit it (or pass EXISTING) to associate the control as a plain existing control.
controlId may be a Vanta control shorthand, custom-control shorthand, or object ID; it resolves to a single canonical control before any write.
Behavior on conflict with an existing association:
-
Same resolved control already associated with the same controlType:
the request is a no-op and the existing relationship is returned (200).
-
Same resolved control associated with the other controlType: the
request is rejected with a hint to use PATCH instead (422).
Request
- Base URLhttps://api.vanta.com
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/vanta/apis/build-integrations/docs/risk-scenarios/:riskScenarioId/controls/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Request body
Response
Ok
Changes
No recorded changes to this operation across all 1 revision of this API.