mcp

PUT /api/v1/environments/{environment_api_key}/experiments/{experiment_id}/

Changed on

(Beta) Updates an experiment's name or its hypothesis.

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
experiment_idinteger required

A unique integer value identifying this experiment.

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