write_record

Change an existing finding with an API key, and where to find the row actions of the same tool.

Reference

At a glance

ActionNeedsDoes
add, change, deleteA row permissionList register rows; see Rows
change_findingregisters:findings:changeChanges one existing finding

A key cannot raise a new finding or remove one. To send new issues in from a tool, add them as rows of a list register; see Send scanner findings into a register.

Change a finding

bash
curl -X POST https://app.alchex.com/api/v1/tools/write_record/change_finding \  -H "Authorization: Bearer EXAMPLE_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "register": "findings", "recordId": "FINDING_ID", "cells": { "Status": "Closed", "Severity": "Low" } }'
FieldRequiredWhat it is
registerYesfindings
recordIdYesThe finding's id. Read it with read_document/rows on findings.
cellsYesThe values that change, by column name

The columns you can change:

ColumnValue
NameText
CategoryText
StatusText. Closed closes the finding.
SeverityCritical, High, Medium or Low
LikelihoodA whole number from 1 to 5
ImpactA whole number from 1 to 5

The answer is 200 with a message. A value Alchex cannot use is refused with 400 refused, and the message says why.

Refusals

AnswerWhen
400 findings_not_createdYou sent rows to add findings
400 findings_not_deletedYou set Status to Deleted or Archived
400 unknown_fieldA column name is not one above
404 not_foundNo finding has that id