Update a device group
Replace a device group’s name and target filter. Both fields are required — send the full desired state, not a partial patch. name must be unique per company (a conflicting name is rejected with 409). Build the target from the GET /device-groups/filters-options catalog and preview it with POST /devices/preview-filter before updating; an invalid target is rejected with 400.
Authorizations
Use your Primo API key in the Authorization header as Bearer <API_KEY>.
Path Parameters
Body
Device group name
1Device-group target filter. An object keyed by criterion key (from the /device-groups/filters-options catalog); each value is a clause { operationType: "INCLUDE" | "EXCLUDE", values: string[] } — never a bare array. Add top-level matchAny: true for OR across clauses. Example: { "platform": { "operationType": "INCLUDE", "values": ["MACOS"] } }.
Response
Device group ID
Device group name
Device-group target filter. An object keyed by criterion key (from the /device-groups/filters-options catalog); each value is a clause { operationType: "INCLUDE" | "EXCLUDE", values: string[] } — never a bare array. Add top-level matchAny: true for OR across clauses. Example: { "platform": { "operationType": "INCLUDE", "values": ["MACOS"] } }.