Overview
Bulk update labels across multiple assets using powerful filters. This endpoint allows you to add, replace, or delete labels on many assets at once, making it ideal for organizing large asset inventories efficiently.Key Features
Flexible Update Modes
- Append: Add new labels without removing existing ones
- Replace: Replace all existing labels with new ones
- Delete: Remove specific labels from assets
Filter-Based Selection
Apply labels to assets that match your filter criteria:- Technology stack (e.g., all WordPress sites)
- Port numbers (e.g., assets with port 443)
- Status codes (e.g., all 200 responses)
- Domains, hosts, IP addresses
- Custom filters for complex queries
Asynchronous Processing
Large operations are processed asynchronously, allowing you to label thousands of assets without waiting for the request to complete.Update Modes Explained
Append Mode (Default)
Adds new labels while preserving existing ones:- Existing labels:
["prod", "api"] - New labels:
["critical"] - Result:
["prod", "api", "critical"]
Replace Mode
Replaces all existing labels with new ones:- Existing labels:
["prod", "api"] - New labels:
["critical", "review"] - Result:
["critical", "review"]
Delete Mode
Removes specific labels from assets:- Existing labels:
["prod", "api", "critical"] - Labels to delete:
["critical"] - Result:
["prod", "api"]
Request Body Structure
With Filters (Recommended)
Target specific assets using filters:Without Filters (Applies to ALL Assets)
Response
Synchronous Response
For small operations:Asynchronous Response
For large operations:Available Filters
| Filter | Description | Example |
|---|---|---|
technologies | Filter by technology stack | "wordpress,nginx" |
domain | Filter by domain names | ["example.com"] |
host | Filter by specific hosts | "https://api.example.com" |
port | Filter by port numbers | "443,8080" |
status_code | Filter by HTTP status codes | "200,301,404" |
title | Filter by page titles | "Admin Panel" |
ip | Filter by IP addresses | "192.168.1.1" |
cname | Filter by CNAME records | "cdn.example.com" |
is_new | Filter only new assets | true |
is_tech | Assets with technology data | true |
is_screenshot | Assets with screenshots | true |
labels | Filter by existing labels | "prod,api" |
time | Time range filter | "last_week" |
enumeration_id | Specific enumeration | "enum_123" |
Authorizations
Headers
Retrieve the Team ID from: https://cloud.projectdiscovery.io/settings/team
Query Parameters
Append or Replace update_type
Available options:
append, replace, delete