Skip to main content
POST
/
container
/
{containerId}
/
environmentVariable
/
import
Import variables
curl --request POST \
  --url https://api.qovery.com/container/{containerId}/environmentVariable/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "overwrite": false,
  "vars": [
    {
      "name": "<string>",
      "value": "<string>",
      "scope": "APPLICATION",
      "is_secret": true
    }
  ]
}
'
{
  "total_variables_to_import": 123,
  "successful_imported_variables": [
    {
      "name": "<string>",
      "scope": "APPLICATION",
      "is_secret": true,
      "value": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

containerId
string<uuid>
required

Container ID

Body

application/json
overwrite
boolean
default:false
required
vars
object[]
required

Response

Import environment variables

total_variables_to_import
number
required
successful_imported_variables
object[]
required