Datto EDR icon

Datto EDR

Datto EDR (Infocyte): list and manage endpoints/agents, threats/alerts, scans, targets, quarantined files, and run response actions — isolate or scan an endpoint, archive or respond to alerts, restore quarantined files. For endpoint security operations, threat triage, and EDR reporting.

Agent → Assign Target

AI-generated

Summary

Assigns one or more Datto EDR agents to a target group (location) by sending a single POST to the Agents/assignTarget endpoint.

Inputs

  • Agent IDs (required) — Comma-separated list of agent IDs to assign. The value is split on commas, trimmed, and empty entries are dropped before being sent as the ids array.
  • Target ID (required) — ID of the target group (location) to move the agents into. Sent as locationId in the request body.

Output shape

One output item per input item, containing the JSON response returned by the Datto EDR API for the assignment call.

The response is passed through unmodified, so its fields depend on the API. If the response is empty, the node emits a placeholder item with found: 0, resource and operation. API errors raise a node error, or an item with an error message if Continue On Fail is enabled. Neither parameter is validated locally; an empty Agent IDs list is still sent as an empty ids array.

Examples

Example 1: Move two newly installed endpoints into a specific target group

Resource: Agent; Operation: Assign Target; Agent IDs: "agent-ID-1, agent-ID-2"; Target ID: the target group's ID.

Example 2: Assign agents from an upstream node's output dynamically

Set Agent IDs to an expression that joins ids from earlier items, e.g. {{ $json.agentId }}, and Target ID to a fixed group ID.

Links

Discussion