def parse_sid(data):
    """Extract id from data

    Args:
        data (dict): models or request

    Returns:
        str: simulationId from data
    """
    try:
        return str(data['simulationId'])
    except KeyError:
        return str(data['models']['simulation']['simulationId'])