Skip to main content
DELETE
Unpublish an environment

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

environmentId
string
required

Project environment ID, as returned by the project's environment list.

Query Parameters

scenarioId
string

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).

environmentId
string
required
deleted
boolean
required

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

id
string