Admin Users

Override the experiment variant for one user

Pins this user to the given variant. Beats weights, experiment status and the global forced variant — only this user is affected. Returns the refreshed experiments overview.

put/admin/users/{id}/experiments/{key}

Path parameters

idstring required

User ID

keystring required

Experiment key

Request body

variantIdstring required

Must be one of the variant ids declared on the experiment. Wins over weights, status and the global forced variant for this user only.

Example request

{
  "variantId": "ltx"
}

Response

Variant overridden successfully

firebaseUserIdstring nullable required

Experiment subject id; null when the user has no Firebase UID

Example response

{
  "experiments": [
    {
      "key": "video_model_ltx_v1",
      "name": "Video generation model: Wan vs LTX",
      "variants": [
        "wan",
        "ltx"
      ],
      "defaultVariantId": "wan",
      "forcedVariantId": "wan",
      "effectiveVariantId": "wan",
      "enrolledVariantId": "ltx",
      "overrideVariantId": "ltx"
    }
  ]
}

Changes

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