use parentlocationid if no location id is given from api list call