Send lice counts
POST/biology/lice-counts
Send lice counts to the ScaleAQ Cloud Service.
This operation is synchronous:
- A successful response means every message has been accepted, validated and stored.
- Each message is stored as one document, identified by unitId and dateTime, compared at millisecond precision.
A lice count:
- is separated hierarchically into the top-level groups stationary, mobile, adultFemale and caligus, at least one of which must be present.
- represents one sample. Counts may be decimals, since a count can be adjusted.
- is the total for the sample for that stage, not an average. Suppliers producing averages must convert them first.
- has groups that each contain either a count or a breakdown into child groups, but not both.
Request
Responses
- 200
- 400
- 422
OK
The request could not be parsed or failed validation of the request body, including unrecognised fields, required fields, value ranges, duplicate messages and the counting rules above.
The request was valid but could not be processed. The response carries one of the following codes:
- entity_not_unique: a message has the same unitId and dateTime as an existing count. Messages in the same request that do not conflict are stored.
- not_found: a unitId is unknown, or the caller has no write access to the site it belongs to. Nothing has been stored. The same code is used for both cases.