POST /configuration_variables
Creates a configuration variable and returns the created configuration variable. Requires the config_vars:write scope.
Servers
- https://api.retool.com/api/v2
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
default_value |
String | No |
The value to use in any environment where no value was specifically set for that environment |
values[] |
Array | Yes | |
values[].value |
String | Yes |
The value of the configuration variable |
values[].environment_id |
String | Yes |
The ID of the environment |
name |
String | Yes |
The name of the configuration variable |
description |
String | No |
The description of the configuration variable |
secret |
Boolean | Yes |
Whether the configuration variable is a secret |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.