Experiments
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET |
List all experiment holdouts
Required API key scopes
experiment:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /experiment_holdoutsExample response
Status 200
Create experiment holdouts
Required API key scopes
experiment:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- filters
Response
Example request
POST /api /projects /:project_id /experiment_holdoutsExample response
Status 201
Retrieve experiment holdouts
Required API key scopes
experiment:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /projects /:project_id /experiment_holdouts /:idExample response
Status 200
Update experiment holdouts
Required API key scopes
experiment:writePath parameters
- idinteger
- project_idstring
Request parameters
- namestring
- descriptionstring
- filters
Response
Example request
PATCH /api /projects /:project_id /experiment_holdouts /:idExample response
Status 200
Delete experiment holdouts
Required API key scopes
experiment:writePath parameters
- idinteger
- project_idstring
Example request
DELETE /api /projects /:project_id /experiment_holdouts /:idExample response
Status 204 No response body
List all experiment saved metrics
Required API key scopes
experiment_saved_metric:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /experiment_saved_metricsExample response
Status 200
Create experiment saved metrics
Required API key scopes
experiment_saved_metric:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- query
- tagsarray
Response
Example request
POST /api /projects /:project_id /experiment_saved_metricsExample response
Status 201
Retrieve experiment saved metrics
Required API key scopes
experiment_saved_metric:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /projects /:project_id /experiment_saved_metrics /:idExample response
Status 200
Update experiment saved metrics
Required API key scopes
experiment_saved_metric:writePath parameters
- idinteger
- project_idstring
Request parameters
- namestring
- descriptionstring
- query
- tagsarray
Response
Example request
PATCH /api /projects /:project_id /experiment_saved_metrics /:idExample response
Status 200
Delete experiment saved metrics
Required API key scopes
experiment_saved_metric:writePath parameters
- idinteger
- project_idstring
Example request
DELETE /api /projects /:project_id /experiment_saved_metrics /:idExample response
Status 204 No response body
List all experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /experimentsExample response
Status 200
List all experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /experimentsExample response
Status 200
Create experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- start_datestring
- end_datestring
- feature_flag_keystring
- holdout_idinteger
- parameters
- secondary_metrics
- saved_metrics_idsarray
- filters
- archivedboolean
- deletedboolean
- type
- exposure_criteria
- metrics
- metrics_secondary
- stats_config
- scheduling_config
- _create_in_folderstring
- conclusion
- conclusion_commentstring
- primary_metrics_ordered_uuids
- secondary_metrics_ordered_uuids
- exposure_preaggregation_enabledboolean
Response
Example request
POST /api /projects /:project_id /experimentsExample response
Status 201
Create experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- start_datestring
- end_datestring
- feature_flag_keystring
- holdout_idinteger
- parameters
- secondary_metrics
- saved_metrics_idsarray
- filters
- archivedboolean
- deletedboolean
- type
- exposure_criteria
- metrics
- metrics_secondary
- stats_config
- scheduling_config
- _create_in_folderstring
- conclusion
- conclusion_commentstring
- primary_metrics_ordered_uuids
- secondary_metrics_ordered_uuids
- exposure_preaggregation_enabledboolean
Response
Example request
POST /api /projects /:project_id /experimentsExample response
Status 201
Retrieve experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /projects /:project_id /experiments /:idExample response
Status 200
Retrieve experiments
Mixin for ViewSets to handle ApprovalRequired exceptions from decorated serializers.
This mixin intercepts ApprovalRequired exceptions raised by the @approval_gate decorator on serializer methods and converts them into proper HTTP 409 Conflict responses with change request details.
Required API key scopes
experiment:readPath parameters
- idinteger
- project_idstring
Response
Example request
GET /api /projects /:project_id /experiments /:id