Experiments
Update Experiment
Updates the targeting rules, treatment allocation, metrics, or hypothesis of an existing experiment or feature flag. Weights and metrics can only grow, so enrolled users never change arms and an existing metric is never dropped. Lifecycle moves through the transition endpoints (activate, pause, end), never through this update. Requires the corresponding experiment permission on the owning account, or Whop internal access for internal experiments.
patch/experiments/{id}
Request body
Example request
{
"control": {
"related_resource": {
"object": "app"
}
},
"hypothesis": "If we send a blueprint nudge email 30 minutes after business creation, then GTV within 10 hours will increase among newly created businesses, resulting in more new business operators generating GTV within 10 hours, because operators currently land on an empty dashboard with no concrete next step. Created by Jane Doe.",
"related_resource": {
"object": "app"
},
"targeting_rules": [
{
"conditions": [
{
"operator": "any",
"type": "user_id"
}
],
"type": "include"
}
],
"variants": [
{
"name": "treatment",
"related_resource": {
"object": "app"
},
"weight": 80
}
]
}Response
metrics added
Example response
{
"account_id": "internal",
"assignment_seed": "checkout_redesign_v21768435200",
"bucket_by": "user",
"configuration_revision": 1,
"control": {
"related_resource": {
"object": "app"
}
},
"created_at": "2026-01-01T12:00:00.000Z",
"created_by": "user_xxxxxxxxxxxxxx",
"ended_at": "2026-01-01T12:00:00.000Z",
"findings": "Treatment lifted conversion 8%",
"flag_key": "checkout_redesign_v2",
"hypothesis": "Users will convert more",
"id": "expt_xxxxxxxxxxxxxx",
"name": "Checkout Redesign V2",
"related_resource": {
"object": "app"
},
"started_at": "2026-01-01T12:00:00.000Z",
"status": "draft",
"targeting_rules": [
{
"conditions": [
{
"operator": "any",
"type": "user_id"
}
],
"type": "include"
}
],
"updated_at": "2026-01-01T12:00:00.000Z",
"variants": [
{
"name": "treatment",
"ranges": [
[
0,
50
]
],
"related_resource": {
"object": "app"
},
"weight": 50
}
],
"winning_arm": "treatment"
}