def update_routing_segmentation_segment_by_id(
    self,
    segment_id: int,
    new_segment_name: str,
) -> bool:
    """Update routing segment name in Orchestrator

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

        * - Swagger Section
          - Method
          - Endpoint
        * - vrf
          - PUT
          - /vrf/config/segments/{id}

    :param segment_id: Numeric id of routing segment
    :type segment_id: int
    :param new_segment_name: New name to assign to routing segment
    :type new_segment_name: str
    :return: Returns True/False based on successful call
    :rtype: bool
    """
    data = {"name": new_segment_name}

    return self._put(
        "/vrf/config/segments/{}".format(segment_id),
        data=data,
        expected_status=[204],
        return_type="bool",
    )