From b74c88fab47f5a5495c3fb1b471ddab9aa62a876 Mon Sep 17 00:00:00 2001 From: mkrs2404 Date: Thu, 11 Jun 2026 15:18:14 +0530 Subject: [PATCH] add last seen filter to assets --- openapi.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index aaf2fb2..7034ee3 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2930,6 +2930,13 @@ paths: $ref: '#/components/responses/ErrorResponse' operationId: get-enumerate-id-export parameters: + - schema: + type: integer + minimum: 1 + in: query + name: not_seen_for_days + description: >- + Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched. - schema: $ref: '#/components/schemas/EnumExportFormats' in: query @@ -4145,6 +4152,13 @@ paths: $ref: '#/components/responses/ErrorResponse' operationId: get-enumerate-export parameters: + - schema: + type: integer + minimum: 1 + in: query + name: not_seen_for_days + description: >- + Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched. - schema: $ref: '#/components/schemas/EnumExportFormats' in: query @@ -6103,6 +6117,13 @@ paths: in: query name: is_internal description: filter by is_internal (internal vs external hosts) + - schema: + type: integer + minimum: 1 + in: query + name: not_seen_for_days + description: >- + Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched. security: - X-API-Key: [] description: Get enumeration content by enumerate_id @@ -6384,6 +6405,13 @@ paths: in: query name: is_internal description: filter by is_internal (internal vs external hosts) + - schema: + type: integer + minimum: 1 + in: query + name: not_seen_for_days + description: >- + Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched. security: - X-API-Key: [] description: Get All enumeration content @@ -9198,6 +9226,11 @@ components: only_ip: type: boolean description: Query only dns IP records + not_seen_for_days: + type: integer + minimum: 1 + description: >- + Return assets that haven't been seen in the last N days. An asset is only included if a scan that covers it has run during that period without rediscovering it, so assets that simply haven't been rescanned recently are not matched. BillingCycle: title: BillingCycle type: object