Associating a Sensor with a Task
Associating a Sensor with a Task

Associating a Sensor with a Task

The ID on an enrolled Sensor must be available before attempting the following procedure.
  1. Click
    Authorize
    and enter your Client Key.
  2. Click
    Close
    .
  3. Expand the POST/environmental/tasks method screen.
  4. Click
    Try It Out
    .
  5. Enter the sample JSON in the Request Object field.
  6. Enter a unique name in the name field.
  7. Click
    Execute
    . If successful, a response with an HTTP Status Code of 200 is returned. The task ID is returned in the response body.
  8. Expand the POST/environmental/task/{taskId}/sensors method screen.
  9. Click
    Try It Out
    .
  10. Enter the returned task ID in the in the taskId path field.
  11. Enter the returned sensor ID from Listing the Sensor in the Sensor ID array in the Request Object field.
  12. Click
    Execute
    . If successful, a response with an HTTP Status code of 200 is returned. A JSON object with the sensor_id and sensor_task_id association is returned.