User testing

Unpublish an environment

Takes the scenario down. Deliberately NOT behind the beta gate that guards publishing: an organization that loses the flag must still be able to take a live scenario down.

Unpublishing something already unpublished answers 200 with deleted: false — a no-op, not an error.

An environment may back more than one study. scenarioId names which one to take down. Omitting it is the whole contract while the environment backs a single study, and is refused rather than guessed at once it backs several.

delete/projects/{projectId}/environments/{environmentId}/scenario

Query parameters

scenarioIdstring

Which study on this environment to unpublish. Omit while the environment backs a single study; required once it backs more than one, because the server refuses to pick between them.

Response

The scenario was removed (or there was none).

environmentIdstring required
deletedboolean required

False when the environment had no scenario. NOT an error — unpublishing something already unpublished is a no-op.

idstring

Changes