VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Ad_accounts
Analytics
Api_keys
Auth
Component_dev_sessions
Component_registry
Components
Development
Events
Experiments
Feature_flag_overrides
Feature_flag_targets
Feature_flags
Ingest_policy
Notification_sends
Notifications
Organizations
Payment_provider_configurations
Payment_provider_products
Payment_sources
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Users
Webhooks
Analytics
Event capture
List Experiments
Create Experiment
Get Experiment
Update Experiment
Archive Experiment
Restore Experiment
Start Experiment
Pause Experiment
Conclude Experiment
Get Experiment Results

Conclude Experiment

POST
/api/v1/experiments/{experimentId}/conclude

Path Parameters

experimentId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

winningVariantId?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/experiments/string/conclude" \  -H "Content-Type: application/json" \  -d '{}'
{  "archivedAt": "string",  "backingFlag": {    "enabled": true,    "id": "string",    "key": "string",    "rolloutBps": 0  },  "createdAt": "string",  "createdByUserId": "string",  "description": "string",  "endedAt": "string",  "featureFlagId": "string",  "hypothesis": "string",  "id": "string",  "name": "string",  "primaryMetricEventName": "string",  "projectId": "string",  "secondaryMetricEventNames": [    "string"  ],  "startedAt": "string",  "status": "draft",  "treatments": [    {      "archivedAt": "string",      "config": null,      "createdAt": "string",      "experimentId": "string",      "id": "string",      "treatmentType": "string",      "updatedAt": "string",      "variantId": "string"    }  ],  "updatedAt": "string",  "updatedByUserId": "string",  "variants": [    {      "archivedAt": "string",      "createdAt": "string",      "experimentId": "string",      "id": "string",      "isControl": true,      "name": "string",      "updatedAt": "string",      "weightBps": 0    }  ],  "version": 0,  "winningVariantId": "string"}
{  "_tag": "Api/SdkValidationError",  "message": "string"}
{  "_tag": "Api/AuthenticationError",  "cause": "string",  "message": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/ExperimentNotFoundError",  "experimentId": "string"}
{  "_tag": "Api/ExperimentConflictError",  "message": "string"}
{  "_tag": "Api/ExperimentServiceError",  "cause": "string"}
PreviousPause ExperimentNextGet Experiment Results