variables

variables/{name}

Changed on

Set a User Variable's value. Body is the raw new value (plain text, not JSON). Add ?persist=true to save it to config/variables.json so it survives an fppd restart; omitted or any other value means the variable is in-memory only.

post/api/variables/{name}

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/variables/{name}
  • Auth
    none declared

Query parameters

persistboolean

Persist the value to disk so it survives a restart.

Request body text/plain

string required

Response

OK

Changes