Clear the suspect flag on a set of relationships
POST
/api/v1/traceability/suspect-links/batch-clear
const url = 'https://app.avera.io/api/v1/traceability/suspect-links/batch-clear';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"relationshipIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"comment":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/traceability/suspect-links/batch-clear \ --header 'Content-Type: application/json' \ --data '{ "relationshipIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "comment": "example" }'Each cleared link gains a version recording the re-verification and the shared comment. Routed through the typed change seam, so the permission check and the record come from the one path. Returns how many links were cleared.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
relationshipIds
required
Array<string>
comment
required
string
Example generated
{ "relationshipIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "comment": "example"}Responses
Section titled “Responses”OK
Media type*/*
object
clearedCount
required
integer format: int32