Water the plants
POST {{wateringEndpoint}}/water
I should water my rooftop plants to make sure they don't die. Hitting this endpoint will deliver water to their thirsty roots. The duration of the watering depends on the moisture levels retrieved in the first request. If you're running the collection in its entirety and the soil is too wet, this POST
request will not run. Wait a few minutes for the soil to dry, and try again.
This POST
request will water your plants (if you're using an actual endpoint).
If you've set up and deployed your own watering endpoint, enter the value in the Qodex environment. The current value directs this request to an example endpoint that returns a simulated moisture level. The more you water this virtual plant, the more moist the soil will become.
Request Body
[{"name"=>"duration", "value"=>"{{waterDuration}}", "datatype"=>"string"}, {"name"=>"password", "value"=>"", "datatype"=>"null"}]
RESPONSES
status: Created
{"success":"true"}