def METHOD_NAME(self):
    user = self.create_user()
    # user without project-write permissions
    self.create_member(user=user, organization=self.organization, role="member")
    self.login_as(user=user)
    team = self.create_team()
    project = self.create_project(teams=[team], name="foo")
    url = reverse(
        "sentry-api-0-project-transaction-threshold",
        kwargs={"organization_slug": project.organization.slug, "project_slug": project.slug},
    )
    ProjectTransactionThreshold.objects.create(
        project=project,
        organization=project.organization,
        threshold=300,
        metric=TransactionMetric.DURATION.value,
    )
    with self.feature(self.feature_name):
        response = self.client.get(url, format="json")
    assert response.status_code == 200, response.content
    with self.feature(self.feature_name):
        response = self.client.post(
            url,
            data={
                "metric": "lcp",
                "threshold": "400",
            },
        )
    assert response.status_code == 403
    with self.feature(self.feature_name):
        response = self.client.delete(url)
    assert response.status_code == 403