PATCH /accounts/{account_id}/brand-protection/queries
Update a saved query's tag, scan setting, or string_matches (pattern). When string_matches is provided, the query parameters and hash are updated. At least one of tag, scan, or string_matches is required.
Servers
- https://api.cloudflare.com/client/v4
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id |
String | Yes |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
id |
Integer | No |
The query ID to update (required when updating tag or scan) |
string_matches[] |
Array | No |
Updated pattern match constraints. When provided, replaces the existing string_matches. |
string_matches[].max_edit_distance |
Number | No |
Maximum Levenshtein edit distance for fuzzy matching |
string_matches[].pattern |
String | Yes |
The pattern to match against |
scan |
Boolean | No |
Whether to scan matches |
tag |
String | No |
Query tag. Required as identifier when updating string_matches. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.