Skip to main content
POST
/
experiments
/
{experimentId}
/
opportunityDetection
Run opportunity detection
curl --request POST \
  --url https://api.kameleoon.com/experiments/{experimentId}/opportunityDetection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dateIntervals": [
    {
      "start": "2023-11-07T05:31:56Z",
      "end": "2023-11-07T05:31:56Z"
    }
  ],
  "mainGoalId": 123
}
'
[
  {
    "segmentInfo": {
      "estimatedUplift": 123,
      "segmentId": "<string>",
      "segmentName": "<string>",
      "segmentReliability": 123,
      "segmentSize": 123
    },
    "variationId": "<string>"
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.kameleoon.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

experimentId
integer<int64>
required

Body

application/json
dateIntervals
object[]

Date intervals result should be bounded with

mainGoalId
integer<int64>

ID of main goal

Response

OK

segmentInfo
object
required
variationId
string
required