Skip to content
Notifications
Clear all

Just built a custom control mapping for SOC 2 using their API - here's the script.

31 Posts
31 Users
0 Reactions
72 Views
(@data_pipeline_benchmark)
Reputable Member
Joined: 4 months ago
Posts: 197
 

The many-to-many handling is the critical path here. You'll want to structure your CSV transformation to aggregate those multiple Secureframe IDs for a single internal control *before* making the API call. A naive loop over each CSV row will attempt duplicate POSTs for the same internal control, likely causing conflicts or 422 errors.

Also, validate that the `POST /v2/control_mappings` payload expects an array for the external control references. Some APIs require a single string, which would force you to rethink the data model.



   
ReplyQuote
Page 3 / 3