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
Target → Update
AI-generatedSummary
Updates an existing Datto EDR target group by ID, sending a PATCH request with the optional Name and Description values and returning the API's response.
Inputs
- Target ID (required) — ID of the target group to update. The node throws an error if it is empty.
- Name — New name for the target group. If left empty, it is omitted from the request body.
- Description — New description for the target group. If left empty, it is omitted from the request body.
Output shape
A single item containing the JSON record returned by the Datto EDR API for the updated target (PATCH Targets/{id}).
Empty Name or Description fields are not sent, so you cannot clear a value by leaving it blank. If every field is empty, the request goes out with no body. API errors (401, 403, 404, 429 and others) are raised as node errors, or returned as an error item when Continue On Fail is enabled.
Examples
Example 1: Rename a target group
Target ID = 12345, Name = 'Finance Workstations', Description left empty.
Example 2: Update a group's description from a previous node's output
Target ID = {{$json.id}}, Description = 'Managed by n8n sync', Name left empty.