Product SiteDocumentation Site

2.8. Update a Domain sensor

Domain sensors update receive same parameters when we create them. We can update name, type, domain type, uuid and MAC Hashing salt (only for Service Providers). The request payload must be in JSON format.
Use following URL to update a domain sensor. Sensor UUID parameter refers the UUID of sensor you want update.
[PATCH] https://hostname/api/v1/sensors/:sensor_uuid?auth_token=xxxxxxxxxxx
An example to update a domain sensor:
      Request:
        HTTP Verb: PATCH
        URI: https://hostname/api/v1/sensors/86348645?auth_token=xxxx
        Payload: { "name": "new_name", "domain_type": "4" }

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