Version: 1
Add a Well Reading
#
DescriptionThis request allows you to enter a reading for a well, but only if a reading does not exist for this date and well. To update a reading, please view the next page.
#
RequestType / Endpoint: POST
https://api.liftstation.cloud/v1/wells
#
Request BodyThe request body is a JSON Object.
#
PropertiesNote: Please send all numbers as strings (in quotes)
property | type | notes |
---|---|---|
pump | int (in quotes) | Must conform to this regular expression /^[0-9]{1,9}$/ |
residual | double (in quotes) or null if there is no residual | Must conform to this regular expression: /^[0-9]\.[0-9]$/ |
wellId | int (in quotes) | |
date | date (in quotes) | 'YYYY-MM-DD' |
#
Response201
#
Status Code Description: The reading was stored in the database.
400
#
Status Code Description: Invalid request body. Please refer to the message you receive for more details, as these can vary.
409
#
Status Code Description: A reading already exists for the given date and well. Please see the next page, Update a Well Reading to update an existing reading.