Asset Discovery Custom Discovery Rule Update
PUT
https://api.deepinfo.com/v1/easm/discovery/custom-rules/{rule_id}Updates a custom discovery rule (send all fields).
Authentication
Send your API key in the apikey request header.
Path Parameters
| Parameter | Required | Description |
|---|---|---|
rule_ | Required | Id of the rule this folder manages, as the matching rule list or search endpoint returns it. Example 00000000000000000000000e8e040001 |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Required | min length 1; max length 255 |
filters | object | Required | The filters of the rule; see the example request body |
tags | array | Optional | max items 10 |
auto_ | boolean | Required | |
enabled | boolean | Required |
application/json
{
"name": "Main domains",
"filters": {
"must": [
{
"name": "webdata.http.final_domain",
"value": "acme.example",
"type": "eq"
}
],
"must_not": [],
"should": []
},
"tags": [],
"auto_approval": false,
"enabled": true
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Id of the record; pass it to this folder's detail endpoint. |
name | string | The record's name. |
filters | object | The filters saved on this record, in the same shape the search endpoint takes. |
tags | array of string | The tags set on the record. |
auto_ | boolean | Whether assets this rule discovers are added to your inventory without review. |
enabled | boolean | Whether the record is switched on. |
create_ | string | When the record was created (UTC). |
last_ | string | When the record was last changed (UTC). |
Response Schema
| Field | Type | Example |
|---|---|---|
id | string | "00000000000000000000000e8e040001" |
name | string | "Main domains" |
filters | object | |
filters. | array< | |
filters. | string | "webdata.http.final_domain" |
filters. | string | "acme.example" |
filters. | string | "eq" |
filters. | array | |
filters. | array | |
tags | array | |
auto_approval | boolean | false |
enabled | boolean | true |
create_date | string | "2025-06-01T08:00:00Z" |
last_update_date | string | "2025-07-01T08:00:00Z" |
Examples
Selecting one loads it into the request and response panels.