Setup Vars

Create

Create a new Setup Vars record.

post/api/cp/setup/var

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

Successful response

statusstring

Operation status

Example response

{
  "id": 12345,
  "status": "OK"
}

Changes