---
title: "Site Discovery Search Criteria"
method: PUT
path: "/api/3/sites/{id}/discovery_search_criteria"
tags: ["Site"]
---

# Site Discovery Search Criteria

`PUT /api/3/sites/{id}/discovery_search_criteria`

Update the search criteria of the dynamic site.

## Path parameters

- `id` integer, required — The identifier of the site.

## Request body

- DiscoverySearchCriteria
  - `connectionType` 'activesync-ldap' | 'activesync-office365' | 'activesync-powershell' | 'aws' | 'dhcp' | 'sonar' | 'vsphere' — The type of discovery connection configured for the site. This property only applies to dynamic sites.
  - `filters` SwaggerDiscoverySearchCriteriaFilter[] — Filters used to match assets from a discovery connection. See <a href="#section/Responses/DiscoverySearchCriteria">Discovery Connection Search Criteria</a> for more information on the structure and format.
    - `field` string — The filter field for the search criteria.
    - `lower` object — The lower value to match in a range criteria.
    - `operator` string — The operator on how to match the search criteria.
    - `upper` object — The upper value to match in a range criteria.
    - `value` object — The single value to match using the operator.
    - `values` object[] — An array of values to match using the operator.
  - `match` 'any' | 'all' — Operator to determine how to match filters. `all` requires that all filters match for an asset to be included. `any` requires only one filter to match for an asset to be included.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/rapid7/apis/rapid7-vm-api.md) · [All operations](https://skmtc.net/rapid7/apis/rapid7-vm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapid7/rapid7-vm-api/versions/3a8197c22d71/schema)
