Skip to content

resources.setVariable

POST
/resources/{resourceId}/variables
curl --request POST \
--url https://example.com/api/resources/example/variables \
--header 'Content-Type: application/json' \
--data '{ "key": "example", "value": "example", "kind": "plain-config", "exposure": "build-time", "isSecret": true }'

Sets one resource-scoped variable or secret override. Public docs: /docs/environments/variables/precedence/#environment-variable-precedence

resourceId
required
string
>= 1 characters
Media type application/json
object
key
required
string
>= 1 characters
value
required
string
kind
string
default: plain-config
Allowed values: plain-config secret provider-specific deployment-strategy
exposure
required
string
Allowed values: build-time runtime
isSecret
boolean

OK

Media type application/json
null
Example generated
example