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
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | String | Yes (or use auth_token) | API key for authentication |
auth_token | String | Yes (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
| Field | Type | Description |
|---|---|---|
result | String | Check outcome: Success, Not Built, or Error |
Error Responses
{
"result": "Error"
}
Behavior
- Validates authenticated user access.
- Checks the local AB testing model directory and counts
.stanfiles. - Returns
{"result":"Success"}when exactly 7 model files are present, otherwise{"result":"Not Built"}.
Related Endpoints
Implementation details
Database Collections
- This endpoint does not read or write database collections.