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

studyId
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. The pre-rename scenarioId is still read here, so a caller holding that spelling does not need a lookup to migrate.

Response

The study was removed (or there was none).

environmentId
string
required
deleted
boolean
required

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

id
string