curl --request POST \
--url https://{FUSION HOST}/api/query-profiles \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"queryPipeline": "<string>",
"collection": "<string>",
"searchHandler": "<string>",
"searchMode": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"experiment": {
"id": "<string>",
"percentOfTraffic": 123
}
}'
{
"id": "<string>",
"queryPipeline": "<string>",
"collection": "<string>",
"searchHandler": "<string>",
"searchMode": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"experiment": {
"id": "<string>",
"percentOfTraffic": 123
}
}
The request is a JSON body defining the new query profile.
curl --request POST \
--url https://{FUSION HOST}/api/query-profiles \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"queryPipeline": "<string>",
"collection": "<string>",
"searchHandler": "<string>",
"searchMode": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"experiment": {
"id": "<string>",
"percentOfTraffic": 123
}
}'
{
"id": "<string>",
"queryPipeline": "<string>",
"collection": "<string>",
"searchHandler": "<string>",
"searchMode": "<string>",
"params": [
{
"key": "<string>",
"value": "<string>",
"policy": "replace"
}
],
"experiment": {
"id": "<string>",
"percentOfTraffic": 123
}
}
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?