Product SiteDocumentation Site

2.3. Flow sensor creation

Flow sensors can be created issuing a POST request to the following URI:
      HTTP Verb: POST
      URI: https://hostname/api/v1/sensors/flow
      STATUS: DEPRECATED
      HTTP Verb: POST
      URI: https://hostname/api/v1/sensors/create/flow
This request accepts the following payload parameters:
If request was successful HTTP 200 OK status code will be returned alongside a JSON response describing the new flow sensor.
In the following lines you may find an example response to a successful request:
      Request:
        HTTP Verb: POST
        URI: https://hostname/api/v1/sensors/flow?auth_token=xxxxxx
        Payload: {"name":"test_flow", "parent_uuid":"7549459708256671519", "ip":"10.0.2.10"}

      Response:
        {
          "query": true,
          "sensor": {
            "id": 901,
            "uuid": "894798882298873783",
            "name": "test_flow",
            "ip": "10.0.2.10"
          }
        }