Replace app environment variables
curl --request PUT \
--url https://api.hyzecloud.com/api/apps/{appId}/env \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"envVars": {}
}'import requests
url = "https://api.hyzecloud.com/api/apps/{appId}/env"
payload = { "envVars": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({envVars: {}})
};
fetch('https://api.hyzecloud.com/api/apps/{appId}/env', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/apps/{appId}/env"
payload := strings.NewReader("{\n \"envVars\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Applications
Replace app environment variables
Faz merge das variáveis enviadas no ambiente existente. Valores são injetados na inicialização — reinicie o app depois. Chaves reservadas (NODE_ENV, PORT, prefixos HYZE_, DOCKER_, AWS_) são rejeitadas.
PUT
/
api
/
apps
/
{appId}
/
env
Replace app environment variables
curl --request PUT \
--url https://api.hyzecloud.com/api/apps/{appId}/env \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"envVars": {}
}'import requests
url = "https://api.hyzecloud.com/api/apps/{appId}/env"
payload = { "envVars": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({envVars: {}})
};
fetch('https://api.hyzecloud.com/api/apps/{appId}/env', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/apps/{appId}/env"
payload := strings.NewReader("{\n \"envVars\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Autorizações
API key com prefixo hyze_. Crie no dashboard em Settings → Developer.
Parâmetros de caminho
Minimum string length:
1Corpo
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Show child attributes
Show child attributes
Resposta
default
Response
Última modificação em 1 de setembro de 2026

