Skip to content

Import risks from a spreadsheet

POST
/v1/data-import/risks
curl --request POST \
--url https://api.varman.io/v1/data-import/risks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "fileName": "vendors.csv", "fileData": "example", "mapping": { "name": "Vendor Name", "owner": "Owner" }, "commit": false }'

Upload a CSV or XLSX file (base64, up to 1000 rows). Without commit it returns the headers, a column mapping matched from the headers (common names from other compliance tools included) and each row with validation errors, warnings and a.

Media typeapplication/json
object
fileName
required

Original file name, ending in .csv or .xlsx

string

Example

vendors.csv
fileData
required

Base64-encoded file contents (5 MB and 1000 rows at most)

string
mapping

Field key to column header. Leave out to get a suggested mapping matched from the headers.

object
key
additional properties
string
nullable

Example

{
"name": "Vendor Name",
"owner": "Owner"
}
commit

False (default) returns a preview with per-row validation; true creates the records.

boolean