def update_categories(data=nil,generate_objects=false)
            uri = URI.parse(@uri + "/Categories")
            put(uri,data,generate_objects)
        end
def update_categories(data=nil,generate_objects=false)
            uri = URI.parse(@uri + "/Categories")
            put(uri,data,generate_objects)
        end
Modify system Categories.

 @param data [Single Categories Object, Array of Categories Objects] (Required)
 @param generate_objects [Boolean] (Optional)
        Caution: Hurts performance -> Only use if performing further edits after updating object
 @return [JSON object] HTTP response JSON object. Returns a Categories objects array if generate_objects flag is set

 @example
          rest_client.update_categories(categories_obj)
          rest_client.update_categories(categories_obj,true)
          rest_client.update_categories(categories_obj_array)
          rest_client.update_categories(categories_obj_array,true)