PATCH
/
apps
/
{app_id}
/
variables
/
{key}
curl --request PATCH \
  --url https://api.withcortex.ai/apps/{app_id}/variables/{key} \
  --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

key
string
required

The key of the variable to rename.

Body

The new variable information.

Detailed information about a variable in your app

key
string

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 updated app variables.

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