POST
/
spark
/
configurations
/
experiment
Create an experiment job configuration
curl --request POST \
  --url https://{FUSION HOST}/api/spark/configurations/experiment \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "description": "<string>",
  "uniqueIdParameter": "<string>",
  "baseSignalsCollection": "<string>",
  "variants": [
    {
      "id": "<string>",
      "name": "<string>",
      "collection": "<string>",
      "queryPipeline": "<string>",
      "params": [
        {
          "key": "<string>",
          "value": "<string>",
          "policy": "replace"
        }
      ],
      "weight": 123
    }
  ],
  "automaticallyAdjustTraffic": true,
  "enabled": true,
  "startTimestamp": "2023-11-07T05:31:56Z",
  "runId": "<string>",
  "metrics": [
    {
      "name": "<string>",
      "description": "<string>",
      "jobId": "<string>",
      "binary": true,
      "primary": true,
      "type": "<string>"
    }
  ]
}'

Authorizations

Authorization
string
header
required

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

Query Parameters

fusionResource
string
required

Body

application/json
id
string

The experiment ID.

description
string

The experiment's description.

uniqueIdParameter
string

The name of the request parameter containing the user ID.

baseSignalsCollection
string

Signals resulting from requests that flow through this experiment will go into the signal collection associated with this base collection.

variants
object[]

The variants belonging to this experiment.

automaticallyAdjustTraffic
boolean

true to enable multi-armed bandits, eliminating the need to specify a traffic weight for each variant.

enabled
boolean

true if this experiment is enabled.

startTimestamp
string<date-time>

The experiment's start time.

runId
string

The experiment run ID.

metrics
object[]

Metrics calculated during the experiment.

Response

200

OK