latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-23174237683.4 KB

9a3b3893f016

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.

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

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