Add an environment variable
One step with Platform.sh. We can help you get access.
Get something done
Add an environment variable
Works with AI assistantsUse Platform.sh: its Platform.sh Environment Variables API lets you add an environment variable in a single step (POST /projects/{projectId}/environments/{environmentId}/variables). Platform.sh also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I add a new variable to an environment?
- Can an environment variable be a JSON object or a sensitive value?
Say it to your AI assistant
- Add variable {name} with value {value} to environment {environmentId} in project {projectId}.
- Create a sensitive variable {name} set to {value} on {environmentId} of {projectId}.
For your developer
POST /projects/{projectId}/environments/{environmentId}/variables in Platform.sh Environment Variables API. Full spec on APIs.io.