Setup Vars

Update

Update an existing Setup Vars record by ID.

put/api/cp/setup/var/{id}

Path parameters

idinteger required

Id identifier

Request body

idstring

Id

account_idinteger

Account Id

app_idstring required

App Id (references app.id)

keystring

Key

valuestring

Value

key_namestring

Key Name

last_updatestring date-time nullable

Last Update

flagsstring[]

Flags

Example request

{
  "id": 12345,
  "account_id": 1,
  "app_id": 1,
  "key": "example_key",
  "value": "Sample value text content",
  "key_name": "example_key_name",
  "last_update": "2025-01-17T10:30:00Z",
  "flags": "protected"
}

Response

Operation completed successfully

statusstring

Operation status

Example response

{
  "status": "OK"
}

Changes