Update the connector filtering Beta
Update the draft filtering configuration of a connector and marks the draft validation state as edited. The filtering draft is activated once validated by the running Elastic connector service. The filtering property is used to configure sync rules (both basic and advanced) for a connector.
Path parameters
-
The unique identifier of the connector to be updated
Body Required
-
filtering array[object]
-
rules array[object]
-
advanced_snippet object
Additional properties are allowed.
PUT /_connector/{connector_id}/_filtering
curl \
-X PUT http://api.example.com/_connector/{connector_id}/_filtering \
-H "Content-Type: application/json" \
-d '{"filtering":[{"active":{"advanced_snippet":{"":"string","value":{}},"rules":[{"":"string","field":"string","id":"string","order":42.0,"policy":"exclude","rule":"contains","value":"string"}],"validation":{"errors":[{"ids":["string"],"messages":["string"]}],"state":"edited"}},"domain":"string","draft":{"advanced_snippet":{"":"string","value":{}},"rules":[{"":"string","field":"string","id":"string","order":42.0,"policy":"exclude","rule":"contains","value":"string"}],"validation":{"errors":[{"ids":["string"],"messages":["string"]}],"state":"edited"}}}],"rules":[{"":"string","field":"string","id":"string","order":42.0,"policy":"exclude","rule":"contains","value":"string"}],"advanced_snippet":{"":"string","value":{}}}'