Skip to main content

How-to: Re-name Experiments and Experiment Chains

Follow the steps below to rename an Experiment/Experiment Chain that is already submitted.

Rename Experiment in UI

  • Navigate to Projects app -> Experiments tab -> click on Experiment to be renamed -> Click 'Edit Experiment' button which is located at Top Right corner (next to 'Done')

  • In the pop-up window, users may edit the Experiment details which includes renaming the Experiment

Rename Experiment/Experiment Chain from ESP Client

  • See example below:

In [1]: from esp.models import Experiment, ExperimentChain

In [2]: exp1 = Experiment('a516e92d-49ae-4aa1-87d1-6de7ed883dc3')

In [3]: exp1
Out[3]: <Experiment(name=EXP 1 ch)>

In [4]: exp1.name
Out[4]: 'WF Chain 1 ch'

In [5]: exp1.name = 'EXP 1 changed from client'

In [6]: exp1.push()

In [7]: exp1
Out[7]: <Experiment(name=EXP 1 changed from client)>


In [16]: echain = ExperimentChain('575ba271-c8d3-4d85-9933-cff49b4de59a')

In [17]: echain
Out[17]: <ExperimentChain(name=WF Chain 1)>

In [18]: echain.name
Out[18]: 'WF Chain 1'

In [19]: echain.name = 'WF Chain 1 changed twice'

In [20]: echain.push()

In [21]: echain.name
Out[21]: 'WF Chain 1 changed twice'

Rename Experiment/Experiment Chain Using REST API

  • PUT /api/workflow_instances/:uuid {"name":"EXP 1 changed REST API"}

  • PUT /api/workflow_chain_instances/:uuid {"name": "WF Chain 1 changed thrice"}