curl --request POST \
--url https://{FUSION HOST}/api/experiments \
--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>"
}
]
}
The JSON request body describes the attributes of the new experiment.
curl --request POST \
--url https://{FUSION HOST}/api/experiments \
--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>"
}
]
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The app to which this object belongs, as app:SomeApp
.
OK
The response is of type object
.
Was this page helpful?