Skip to main content
Version: 24.05

Check Bayesian Models

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/o/ab-testing/check-models

Overview​

Checks whether the AB testing model directory contains 7 .stan model files.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

  • No feature permission required (authenticated user)

Request Parameters​

ParameterTypeRequiredDescription
api_keyStringYes (or use auth_token)API key for authentication
auth_tokenStringYes (or use api_key)Auth token for authentication

Examples​

Example 1: Check Bayesian Models​

Request:

curl "https://your-server.com/o/ab-testing/check-models?api_key=YOUR_API_KEY"

Response​

Success Response​

{
"result": "Success"
}

Not Built Response​

{
"result": "Not Built"
}

Response Fields​

FieldTypeDescription
resultStringCheck outcome: Success, Not Built, or Error

Error Responses​

{
"result": "Error"
}

Behavior​

  • Validates authenticated user access.
  • Checks the local AB testing model directory and counts .stan files.
  • Returns {"result":"Success"} when exactly 7 model files are present, otherwise {"result":"Not Built"}.
Implementation details

Database Collections

  • This endpoint does not read or write database collections.