Environment Variable
Create an environment variable alias at the environment level
- Allows you to add an alias at environment level on an existing environment variable having higher scope, in order to customize its key.
- You only have to specify a key in the request body
- The system will create a new environment variable at environment level with the same value as the one corresponding to the variable id in the path
- The response body will contain the newly created variable
- Information regarding the aliased_variable will be exposed in the "aliased_variable" field of the newly created variable
- You can't create an alias on an alias
post/environment/{environmentId}/environmentVariable/{environmentVariableId}/alias
Request
- Base URLhttps://api.qovery.com
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
environmentIdstring uuid required
Environment ID
environmentVariableIdstring uuid required
Environment Variable ID
Request body
Response
Create variable alias
Example response
{
"aliased_variable": {
"key": "QOVERY_DATABASE_PSQL_NAME"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.