Variable Main Calls
Create a variable alias
- Allows you to create an alias of one of the existing variables.
- You have to specify an alias (key) in the request body, the scope and the parent id of the alias (project id, environment id or service id)
- The system will create a new variable at the requested level with the same value as the one corresponding to the variable id passed as path parameter.
- The response body will contain the newly created variable
- Information regarding the aliased_variable will be exposed in the "aliased_variable" or in the "aliased_secret" field of the newly created variable
- You can't create an alias on an alias
post/variable/{variableId}/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
variableIdstring uuid required
Variable ID
Request body
Response
Create variable alias
Example response
{
"aliased_variable": {
"key": "DATABASE_PSQL_NAME"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.