PUT
/
experiments
/
{id}
Update an experiment
curl --request PUT \
  --url https://{FUSION HOST}/api/experiments/{id} \
  --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>"
    }
  ]
}'
{
  "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.

Headers

ifMatch
object

An optional tag to match.

Path Parameters

id
string
required

The experiment ID.

Query Parameters

context
string

The app to which this object belongs, as app:SomeApp.

Body

application/json

Response

200 - */*

OK

The response is of type object.