---
updatedAt: 2026-04-29T00:49:36.000Z
agentTools:
  projectIndex: https://synaccess.readme.io/llms.txt
---

# Update A Group

Update group metadata. To change device membership, use the dedicated addDevice and removeDevice operations instead of the legacy items field.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Cloud.Synaccess",
    "version": "1.3"
  },
  "servers": [
    {
      "url": "https://cloud.synaccess.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "authorization",
        "in": "header",
        "x-default": "Bearer"
      }
    },
    "schemas": {
      "GroupUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique database identifier for the user."
          },
          "user_id": {
            "type": "string",
            "description": "Public user identifier, when available."
          },
          "email_id": {
            "type": "string",
            "description": "Username or email address for the user."
          },
          "is_enterprise_admin": {
            "type": "boolean"
          },
          "has_admin_privileges": {
            "type": "boolean"
          },
          "active_in_enterprise": {
            "type": "boolean"
          }
        }
      },
      "Group": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the group.",
            "example": 168
          },
          "role_id": {
            "type": "string",
            "description": "Role assigned to users who have direct access to the group."
          },
          "name": {
            "type": "string",
            "maxLength": 255,
            "description": "User-defined group name.",
            "example": "Lab Bench PDUs"
          },
          "description": {
            "type": "string",
            "description": "User-defined group description.",
            "example": "PDUs installed on the lab benches."
          },
          "groupType": {
            "type": "string",
            "enum": [
              "outlets",
              "devices"
            ],
            "description": "Type of resources contained in the group."
          },
          "outletBatchDelay": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "description": "Delay in seconds between batch operations for an outlet group."
          },
          "items": {
            "type": "array",
            "description": "Current member IDs. Device groups contain enclosure serial numbers; outlet groups contain outlet IDs.",
            "items": {
              "type": "string"
            },
            "example": [
              "1502455"
            ]
          },
          "itemsOnline": {
            "type": "integer",
            "description": "Number of group devices currently online."
          },
          "itemsCount": {
            "type": "integer",
            "description": "Total number of group members."
          },
          "itemsOffline": {
            "type": "integer",
            "description": "Number of group devices currently offline."
          },
          "activeAlertCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number of active alerts visible to the authenticated user."
          },
          "users": {
            "type": "array",
            "description": "Users with access to the group. This list is populated for administrators.",
            "items": {
              "$ref": "#/components/schemas/GroupUser"
            }
          },
          "role": {
            "type": "object",
            "description": "Expanded role details when a role is assigned."
          }
        }
      },
      "GroupResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Group"
          }
        }
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "tags": [
    {
      "name": "Groups",
      "description": "Group inventory and management endpoints."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Devices",
      "tags": [
        "Device Inventory",
        "Device Live Telemetry",
        "Device Logs",
        "Configuration",
        "Firmware"
      ]
    },
    {
      "name": "Power Control",
      "tags": [
        "Outlets",
        "PDU Outlet Groups",
        "Inlets",
        "Banks",
        "Sensors"
      ]
    },
    {
      "name": "Automation",
      "tags": [
        "Events",
        "Actions"
      ]
    },
    {
      "name": "Organization",
      "tags": [
        "Groups"
      ]
    }
  ],
  "paths": {
    "/v1/groups/{group_id}": {
      "put": {
        "summary": "Update A Group",
        "description": "Update group metadata. To change device membership, use the dedicated addDevice and removeDevice operations instead of the legacy items field.",
        "operationId": "update-a-group",
        "parameters": [
          {
            "name": "group_id",
            "in": "path",
            "description": "Unique ID for a previously created group",
            "schema": {
              "type": "integer"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "User defined name for group"
                  },
                  "description": {
                    "type": "string",
                    "description": "User defined description for the group"
                  },
                  "groupType": {
                    "type": "string",
                    "enum": [
                      "outlets",
                      "devices"
                    ],
                    "description": "Type of resources contained in the group"
                  },
                  "outletBatchDelay": {
                    "type": "number",
                    "minimum": 0,
                    "description": "Delay in seconds between batch operations for an outlet group"
                  },
                  "role_id": {
                    "type": "string",
                    "description": "Role to apply to users with direct access to the group"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "Lab Bench PDUs",
                    "description": "PDUs installed on the lab benches."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "data": {
                        "id": 168,
                        "name": "Lab Bench PDUs",
                        "description": "PDUs installed on the lab benches.",
                        "groupType": "devices",
                        "items": [
                          "1502455"
                        ]
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/GroupResponse"
                }
              }
            }
          }
        },
        "deprecated": false,
        "tags": [
          "Groups"
        ]
      }
    }
  }
}
```