Can't set repeated endpoints message as None, so just sending an empty data object; added checking in JS