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

# Update local environment variables

`POST /api/system/environment/local`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/system/environment/local`
- Auth: none declared

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.dev/elizaos/apis/eliza-os-api.md) - [All operations](https://skmtc.dev/elizaos/apis/eliza-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/elizaos/apis/eliza-os-api/revisions/d606a12682bb?raw)
