def get_group_command_url(environment: str,
                          enterprise_id: str,
                          group_id: str) -> str:
    """
    Build and return pipeline url for scapi endpoint
    :param environment:
    :param enterprise_id:
    :param group_id:
    :return: Url
    """
    url = f'https://{environment}-api.esper.cloud/api/enterprise/{enterprise_id}/devicegroup/{group_id}/command/'
    return url