experiments

Repository a flag-cleanup pull request for this experiment would be opened in.

Resolution order: the experiment's saved repository, else the environment's default cleanup repository, else the team's only connected GitHub repository. When the team has several repositories and none is saved (source=ambiguous), pass one via repository on end/ship_variant.

get/api/projects/{project_id}/experiments/{id}/flag_cleanup_target/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/experiments/{id}/flag_cleanup_target/
  • Auth: HTTP bearer

Path parameters

idinteger required

A unique integer value identifying this experiment.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Response

repositorystring nullable required

Repository a flag-cleanup pull request would be opened in, or null when none can be determined.

source'explicit' | 'team_default' | 'single_repo' | 'ambiguous' | 'no_integration' required
  • explicit - explicit
  • team_default - team_default
  • single_repo - single_repo
  • ambiguous - ambiguous
  • no_integration - no_integration
candidatesstring[] required

Repositories connected to the team's GitHub integration, to choose a target from.

Changes

No recorded changes to this operation across all 1 revision of this API.