Bulk import
Load risks, controls, incidents, contracts, obligations and compliance requirements from a CSV file or a JSON array, with a dry run and a row-by-row report.
Use the import endpoint to move many records in from a spreadsheet or another system. Every row runs through the same checks as a form in the app: validation, your access, department scope, plan limits and the audit log.
Role needed
A person who has no right on the module gets the error "forbidden" on every row. Nothing is written.
You can also import from a spreadsheet in the app. See Admin.
What you can import
entity | Match on |
|---|---|
risks | code or id |
controls | code or id |
incidents | id |
contracts | id |
obligations | id |
requirements | id |
mode | Behaviour |
|---|---|
create | Creates every row. A row whose match key already exists fails. This is the default. |
upsert | Updates the row that matches, creates the others. |
update | Updates only. A row without a match key, or without a match, fails. |
Codes of new risks and controls are assigned by the app. A code in a created row is ignored and reported as a warning.
Import a file
Create an access token with the scope "Read, write and bulk import". See Authentication.
Prepare a CSV with a header line. Column names are field names (title, owner_email), or the English labels the app uses. A column that is not a field is ignored with a warning. Several values in one cell are separated by ;.
Run it as a dry run first. Nothing is saved, and you get the full report.
curl -X POST https://grc.volatilis.org/api/v1/imports \
-H "Authorization: Bearer vgrc_YOUR_TOKEN" \
-H "Idempotency-Key: import-2026-11-15-dry" \
-F entity=risks -F mode=create -F dry_run=true \
-F file=@risks.csvRead the report, fix the file, and send it again without dry_run. Use a new Idempotency-Key for each different run. The same key with the same file returns the stored result.
Without a file you can send JSON. The rows go in rows:
curl -X POST https://grc.volatilis.org/api/v1/imports \
-H "Authorization: Bearer vgrc_YOUR_TOKEN" \
-H "Idempotency-Key: import-2026-11-15-json" \
-H "Content-Type: application/json" \
-d '{
"entity": "risks",
"mode": "create",
"dry_run": true,
"rows": [
{ "title": "Supplier outage", "taxonomy": "cyber", "status": "open",
"residual_likelihood": 3, "residual_impact": 4 }
]
}'The header Idempotency-Key is required.
Options
| Field | Default | Meaning |
|---|---|---|
entity | none | Required. See the table above. |
format | csv with a file, else json | How the rows arrive. |
mode | create | create, upsert or update. |
match_on | code for risks and controls, else id | Which column finds an existing record. |
dry_run | false | Run everything, save nothing. |
continue_on_error | true | With false, the first failed row stops the import and nothing is saved. |
mapping | none | Maps your column names to fields, for example {"Risk title": "title", "Notes": null}. A column mapped to null is ignored. |
A file may be up to 20 MB. The number of rows depends on the plan: 500 rows on Foundation, 5,000 on Intelligence and 50,000 on Tailored. A longer file answers 422.
Read the report
An import of up to 500 rows runs while you wait and answers 200 with the report. A longer one is queued. It answers 202 with { "id": "...", "status": "queued" }. Poll GET /api/v1/imports/{id} until status is done or failed.
{
"data": {
"id": "6b0f...",
"entity": "risks",
"mode": "create",
"status": "done",
"dry_run": false,
"summary": { "rows": 120, "created": 112, "updated": 0, "skipped": 0, "failed": 8 },
"rows": [
{ "row": 7, "status": "failed",
"errors": [ { "field": "taxonomy_node_id", "code": "invalid", "message": "..." } ] }
]
}
}row counts data rows from 1. The header line is not counted. Each row is created, updated, skipped or failed. A row can also carry warnings, for example for an ignored column.
GET /api/v1/imports/{id}/errors.csv returns the failed rows with an extra errors column. Fix them and upload that file again. It is available once the import is done.
Only the person who started the import and organization admins can read its report. Everyone else gets 404.
How rows are saved
- The file is saved in chunks of 200 rows. Each row is saved on its own, so a failed row does not block the others.
- With
continue_on_errorset tofalse, the whole file is one transaction. If any row fails, nothing is saved and the other rows are reported as skipped. - A dry run checks the whole file in one go and saves nothing. Plan limits add up across the rows, so a dry run shows when you would run into a limit.
- The audit log gets one entry for the import with the counts, and the usual entries for each record, marked as coming from the API.
- A queued import that is interrupted is not run again, because rows already saved would be saved twice. The report says so. Check the records, then send the rest.
Plan limits
Creating records counts against the plan limits like any other way of creating them. The row limits above apply per import. The monthly call allowance of the REST API is in the table on the Developers overview.