POST
/
apps
/
{app_id}
/
variables
curl --request POST \
  --url https://api.withcortex.ai/apps/{app_id}/variables \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "value": "<string>",
  "secret": true
}'
{
  "key": "<string>",
  "value": "<string>",
  "secret": true
}

Path Parameters

app_id
string
required

The ID of the app

Body

The new variable information.

Detailed information about a variable in your app

key
string
required

The key of the app variable

Maximum length: 128
value
string

The value of the app variable

Maximum length: 2048
secret
boolean

Indicates if the variable is a secret

Response

200 - application/json
The created app variable.

Detailed information about a variable in your app

key
string
required

The key of the app variable

Maximum length: 128
value
string

The value of the app variable

Maximum length: 2048
secret
boolean

Indicates if the variable is a secret