def update_stats_collection(
    self,
    stat_type: str,
    enable: bool,
) -> bool:
    """Update statistics collection Enable/Disable info for named
    statistic

    .. list-table::
        :header-rows: 1

        * - Swagger Section
          - Method
          - Endpoint
        * - statsRetention
          - PUT
          - /gms/stats/collection/{statType}

    :param stat_type: Statistic type e.g. ``interfacebyoverlay``
    :type stat_type: str
    :param enable: ``True`` for Enabled or ``False`` for Disabled
    :type enable: bool
    :return: Returns True/False based on successful call
    :rtype: bool
    """
    data = {}
    data[stat_type] = enable

    return self._put(
        "/gms/stats/collection/{}?isEnabled={}".format(stat_type, enable),
        data=data,
        return_type="bool",
    )