The new-style string formatting `settings.PHENOTYPE_ENDPOINT.format(sample.label)` is preferred.