---
title: "variables/{name}"
method: POST
path: "/api/variables/{name}"
tags: ["variables"]
---

# variables/{name}

`POST /api/variables/{name}`

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.

## Query parameters

- `persist` boolean

## Response `200`

OK

## Other responses

- `400` — Missing variable name in the path.

---

[API](https://skmtc.net/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.net/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/versions/6fa524e15dd4/schema)
