跳转到内容

environments.unsetVariable

DELETE
/environments/{environmentId}/variables/{key}
curl --request DELETE \
--url https://example.com/api/environments/example/variables/example \
--header 'Content-Type: application/json' \
--data '{ "exposure": "build-time", "scope": "defaults" }'

Removes an environment variable in a specific exposure and optional scope. Public docs: /docs/environments/variables/precedence/#environment-variable-precedence

environmentId
required
string
>= 1 characters
key
required
string
>= 1 characters
Media type application/json
object
exposure
required
string
Allowed values: build-time runtime
scope
string
Allowed values: defaults system organization project environment resource deployment

OK

Media type application/json
null
Example generated
example