---
title: "Update local environment variables"
method: POST
path: "/api/system/environment/local"
tags: ["system"]
---

# Update local environment variables

`POST /api/system/environment/local`

Update local environment variables in .env file

## Request body

- object
  - `content` object — Key-value pairs of environment variables

## Response `200`

Environment variables updated

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Invalid request
- `500` — Error updating environment variables

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
