Skip to main content
records

Update Likelihoods Batch

Set many cause-symptom likelihoods in one request. Batch of the single likelihood endpoint.

PUT
/api/records/{company_name}/templates/{template_id}/diagnostics/likelihoods/batch

Each entry names a cause_uid, a symptom_uid and the new likelihood; the cell's gradient is reset like in the single endpoint. All-or-nothing: an unknown uid or a duplicate pair rejects the whole batch and writes nothing.

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

template_idstringrequired
Required string length: 24 - 24
Pattern: ^[0-9a-f]{24}$
Example: 5eb7cf5a86d9755df3a6c593
company_namestringrequired

Body

application/json
itemsobject[]
Minimum array length: 1

Response

application/json

Successful Response

causesobject[]default:[]required
gradientnumber[][]default:[[]]required
last_updatedstring | nullrequired
likelihoodnumber[][]default:[[]]required
owner_namestringrequired
priorsnumber[]default:[]required
symptom_groupsobject[]default:[]required
symptomsobject[]default:[]required
template_idstringrequired
Required string length: 24 - 24
Pattern: ^[0-9a-f]{24}$
Example: 5eb7cf5a86d9755df3a6c593
userinfoobject | nullrequired