Modify labels of an asset
Asset Discovery
Modify labels of an asset
PATCH
Modify labels of an asset
Documentation Index
Fetch the complete documentation index at: https://docs.projectdiscovery.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Modify labels on a specific asset with granular control over how labels are updated. This endpoint provides three update modes (append, replace, delete) for managing labels on individual assets.Update Modes
Append Mode (Default)
Add new labels while keeping existing ones:Replace Mode
Replace all existing labels with new ones:Delete Mode
Remove specific labels from the asset:Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
update_type | string | No | append | Update mode: append, replace, or delete |
Request Body
Response
Detailed Examples
Example 1: Append Labels
Add labels without affecting existing ones: Before:Example 2: Replace All Labels
Completely replace the label set: Before:Example 3: Delete Specific Labels
Remove only specific labels: Before:Use Cases
1. Change Asset Classification
Update labels when asset purpose changes:2. Remove Temporary Labels
Clean up labels after completing a process:3. Update Priority
Change priority labels as situations evolve:Authorizations
Path Parameters
Query Parameters
Append or Replace update_type
Available options:
append, replace, delete Body
application/json
Response
Example response