mcp

POST /api/v1/environments/{environment_api_key}/experiments/

Changed on

(Beta) Creates an experiment for a multivariate feature. Metrics can be attached inline. Only one active experiment per feature is allowed.

Request

  • Base URL
    https://api.flagsmith.com
  • Auth
    • API key in header Authorization
    • or API key in header Authorization

Path parameters

environment_api_keystring required

Request body

idinteger
featureinteger required
namestring required
hypothesisstring required
status'created' | 'running' | 'paused' | 'completed'
  • created - Created
  • running - Running
  • paused - Paused
  • completed - Completed
created_atstring date-time
updated_atstring date-time
started_atstring date-time nullable
ended_atstring date-time nullable
rollout_variantinteger nullable

Response

idinteger
featureinteger required
namestring required
hypothesisstring required
status'created' | 'running' | 'paused' | 'completed'
  • created - Created
  • running - Running
  • paused - Paused
  • completed - Completed
created_atstring date-time
updated_atstring date-time
started_atstring date-time nullable
ended_atstring date-time nullable
rollout_variantinteger nullable

Changes

    • info

      added the optional property rollout_decision to the response with the status

    • info

      added the optional property rollout_variant to the response with the status

    • breaking

      the request property experiment_rollout/allOf[#/components/schemas/ExperimentRollout]/multivariate_feature_state_values became required (media type: application/json)

    3 more changes in this revision