Skip to main content
Helicone OSS LLM Observability

Set Version Environment

Set the environment for a specific prompt version
1 min read
posthttps://api.helicone.ai/v1/prompt-2025/update/environment
posthttps://api.helicone.ai/v1/prompt-2025/update/environment

Updates the environment for a specific prompt version. Environments can be "production", "staging", "development", or any custom environment name.

Request Body#

promptIdstringrequired#

The unique identifier of the prompt

promptVersionIdstringrequired#

The unique identifier of the prompt version to update

environmentstringrequired#

The environment to set for this version (e.g., "production", "staging", "development")

Response#

Returns null on successful update.