ScanopyScanopy
Tags

Bulk add a tag to multiple entities

Adds a single tag to multiple entities of the same type. This is useful for batch tagging operations.

Validation

  • Entity type must be taggable (Host, Service, Subnet, Group, Network, Discovery, Daemon, DaemonApiKey, UserApiKey)
  • Tag must exist and belong to your organization
  • Entities that already have the tag are silently skipped
POST
/api/v1/tags/assign/bulk-add

Authorization

Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request body for bulk tag operations

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/tags/assign/bulk-add" \  -H "Content-Type: application/json" \  -d '{    "entity_ids": [      "63d5b391-6678-4b1c-88e0-89fe98dcf022"    ],    "entity_type": "Organization",    "tag_id": "39c8a0b3-fbe8-4801-95bf-e8a0792edf1d"  }'
{
  "meta": {
    "api_version": 1,
    "server_version": "0.17.13"
  },
  "success": true,
  "data": {
    "affected_count": 0
  },
  "error": "string"
}
{
  "meta": {
    "api_version": 1,
    "server_version": "0.17.13"
  },
  "success": true,
  "code": "string",
  "error": "string",
  "params": {
    "property1": null,
    "property2": null
  }
}
{
  "meta": {
    "api_version": 1,
    "server_version": "0.17.13"
  },
  "success": true,
  "code": "string",
  "error": "string",
  "params": {
    "property1": null,
    "property2": null
  }
}