How can we help?


Controlling zones with API

Comments

1 comment

  • Official comment
    Avatar
    Nicholas

    You will need to specify a time to run, so you need to add:

    --data "{\"time\": 60 }" 

    to your curl command.

     

    Actually you have curl examples on the API documentation: http://docs.rainmachine.apiary.io/#reference/zones/zoneidstart/post (see the right hand console)

     

    curl --include \
         --request POST \
       --data-binary "{
        \"time\": 60
    }" \
    '
    https://private-bd9e-rainmachine.apiary-mock.com/api/4/zone/{id}/start

Please sign in to leave a comment.