# Bulk add targets to a target list Adds multiple targets to a target list. Creates target records if they don't exist, then links them to the target list. Existing targets in the list are left unchanged (skipped). Behaves the same as legacy /targets/ API. device_name should be provided for proper target run creation. device_alias can be provided as a direct property and will be stored in device_meta. Endpoint: POST /pipelines/v0/pipelines/{pipeline_id}/targetlists/{targetlist_id}/targets-bulk/ Version: 1.0.0 Security: SCAPIAuthToken ## Path parameters: - `pipeline_id` (string, required) ID of the Pipeline - `targetlist_id` (string, required) ID of the Target List ## Response 200 fields (application/json): - `code` (integer) Example: 200 - `message` (string) Example: "Bulk add completed. 2 target(s) created, 5 target(s) added to list, 1 target(s) skipped." - `content` (object) - `content.created_count` (integer) Number of new target records created Example: 2 - `content.added_count` (integer) Number of targets successfully added to the list Example: 5 - `content.skipped_count` (integer) Number of targets that were already in the list Example: 1 - `content.errors` (array) List of any errors encountered Example: [] ## Response 400 fields (application/json): - `code` (integer, required) - `message` (string, required) - `content` (object) ## Response 401 fields (application/json): - `code` (integer, required) - `message` (string, required) - `content` (object) ## Response 500 fields (application/json): - `code` (integer, required) - `message` (string, required) - `content` (object)