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 → Create
AI-generatedSummary
Creates a new target group in Datto EDR by POSTing a name and optional description to the Targets endpoint, and returns the created record.
Inputs
- Name — Name of the target group. Marked required by the API when creating, but the node does not enforce it. An empty value is omitted from the request body.
- Description — Description of the target group. Omitted from the request body when left empty.
Output shape
A single item containing the JSON record of the newly created target group, as returned by the Datto EDR API (typically including its generated ID).
Only non-empty Name and Description values are sent. The node does not validate Name itself, so a missing name will surface as an API error. Errors are wrapped with status-specific messages (401, 403, 404, 429). With Continue On Fail enabled, the item outputs an error message instead. The request runs once per input item.
Examples
Example 1: Create a target group for a new customer site
Resource: Target; Operation: Create; Name: 'Acme HQ'; Description: 'Endpoints at Acme headquarters'
Example 2: Create target groups from incoming rows
Resource: Target; Operation: Create; Name set to expression {{$json.siteName}}; Description left blank