public function edit($groupId, $group, $libraryQuota = 0, $isSystemNotification = 0, $isDisplayNotification = 0)
    {
        $this->groupId = $groupId;
        $this->group = $group;
        $this->libraryQuota = $libraryQuota;
        $this->isSystemNotification = $isSystemNotification;
        $this->isDisplayNotification = $isDisplayNotification;

        $this->getLogger()->info('Editing User Group ID ' . $this->groupId);
        $response = $this->doPut('/group/' . $groupId, $this->toArray());

        $this->getLogger()->debug('Passing the response to Hydrate');
        /** @var XiboUserGroup $userGroup */
        $userGroup = $this->hydrate($response);

        return $userGroup;
    }