Actions60
- Agent Actions
- Alert Actions
- Box Actions
- Extension Actions
- Flag Actions
- Location Actions
- Organization Actions
- Policy Actions
- Quarantined File Actions
- Report Actions
- Suppression Rule Actions
- Target Actions
- User Actions
- Webhook Actions
Agent → Assign Target
AI-generatedSummary
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
idsarray. - Target ID (required) — ID of the target group (location) to move the agents into. Sent as
locationIdin 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,resourceandoperation. API errors raise a node error, or an item with anerrormessage if Continue On Fail is enabled. Neither parameter is validated locally; an empty Agent IDs list is still sent as an emptyidsarray.
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.