Product SiteDocumentation Site

2.9. Update Flow, MSE and Meraki sensors

Flow, MSE or Meraki sensors update receive same parameters when we create them. All sensor properties will be updated with new values. The request payload must be in JSON format.
Use following URL to update a sensor. Type parameter refers to the type of sensor (flow, mse or meraki values are available).
[PATCH] https://hostname/api/v1/sensors/:sensor_uuid/:type?auth_token=xxxxxxxxxxx
An example to update a Flow sensor:
        Request:
          HTTP Verb: PATCH
          URI: https://hostname/api/v1/sensors/86348645/flow?auth_token=xxxx
          Payload: { "name": "flow_new", "nmsp": "1", "spanport": "0" }

        Response:
          {
            "query": true,
            "sensor": {
              ...
            }
          }