Create or replace a variable by name
PUT
/api/v1/deploy/services/{id}/env/{name}En esta página
Parámetros
| Campo | En | Tipo | Descripción |
|---|---|---|---|
idobligatorio | ruta | string | A service id, or project/service, or project/environment/service |
nameobligatorio | ruta | string |
|
format | consulta | string | text answers in plain text instead of JSON
|
Cuerpo
| Campo | Tipo | Descripción |
|---|---|---|
valueobligatorio | string |
|
secret | boolean |
|
redeploy | boolean | Redeploy the services this reaches so they pick it up now. Needs the right to deploy.
|
Esquema JSON
{
"type": "object",
"properties": {
"value": {
"type": "string",
"maxLength": 65536
},
"secret": {
"type": "boolean",
"default": true
},
"redeploy": {
"type": "boolean",
"default": false,
"description": "Redeploy the services this reaches so they pick it up now. Needs the right to deploy."
}
},
"required": [
"value"
]
}Petición de ejemplo
curl -X PUT "https://polaris.example.com/api/v1/deploy/services/{id}/env/{name}" \
-H "Authorization: Bearer $POLARIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"value": "string",
"secret": true,
"redeploy": false
}'Respuestas
| Estado | Qué es |
|---|---|
200 | OK |
También puede dar los errores comunes 400, 401, 403, 404, 429. Ver errores comunes