Skip to main content
POST
/
v1
/
prompt-2025
/
update
/
environment
curl -X POST "https://api.helicone.ai/v1/prompt-2025/update/environment" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promptId": "prompt_123",
    "promptVersionId": "version_789",
    "environment": "production"
  }'
null
Updates the environment for a specific prompt version. Environments can be “production”, “staging”, “development”, or any custom environment name.

Request Body

promptId
string
required
The unique identifier of the prompt
promptVersionId
string
required
The unique identifier of the prompt version to update
environment
string
required
The environment to set for this version (e.g., “production”, “staging”, “development”)

Response

Returns null on successful update.
curl -X POST "https://api.helicone.ai/v1/prompt-2025/update/environment" \
  -H "Authorization: Bearer $HELICONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promptId": "prompt_123",
    "promptVersionId": "version_789",
    "environment": "production"
  }'
null