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: <api-key>' \
  --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>",
      "value": "<string>",
      "scope": "APPLICATION",
      "is_secret": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $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