GET
/
experiments
/
{id}
/
variant
Get a variant
curl --request GET \
  --url https://{FUSION HOST}/api/experiments/{id}/variant \
  --header 'Authorization: Basic <encoded-value>'
{
  "id": "<string>",
  "name": "<string>",
  "collection": "<string>",
  "queryPipeline": "<string>",
  "params": [
    {
      "key": "<string>",
      "value": "<string>",
      "policy": "replace"
    }
  ],
  "weight": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the experiment from which to pick a variant. Use /experiments to get experiment IDs.

Query Parameters

userId
string
required

The name of the field containing the user ID for which to pick a variant.

Response

200 - */*

OK

id
string

The experiment variant ID.

name
string

The experiment variant name.

collection
string

The data collection associated with this experiment variant.

queryPipeline
string

The query pipeline associated with this experiment variant.

params
object[]
weight
number

This variant's traffic weight.