code: @Override
      @Path("/{groupName}")
      @ApiOperation(value="Update a workgroup", response=StatusMessage.class)
      @ApiImplicitParams({
          @ApiImplicitParam(name="Workgroup", paramType="body", required=true, dataType="com.centurylink.mdw.model.user.Workgroup")})
      public JSONObject put(String path, JSONObject content, Map<String,String> headers)
      throws ServiceException, JSONException {
  
          UserServices userServices = ServiceLocator.getUserServices();
          String name = getSegment(path, 1);
          if (name == null)
              throw new ServiceException(HTTP_400_BAD_REQUEST, "Missing path segment: {name}");
          if (!content.has("name"))
              throw new ServiceException(HTTP_400_BAD_REQUEST, "Missing required property: name");
          Workgroup workgroup = new Workgroup(content);
          try {
              Workgroup existing = userServices.getWorkgroup(name);
              if (existing == null)
                  throw new ServiceException(HTTP_404_NOT_FOUND, "Workgroup not found: " + name);
              // update
              workgroup.setId(existing.getId());
              userServices.updateWorkgroup(workgroup);
              return null;
          }
          catch (DataAccessException ex) {
              throw new ServiceException(HTTP_500_INTERNAL_ERROR, ex.getMessage(), ex);
          }
      }
docs: For update.