---
title: "Set Agent Skills Env"
method: PUT
path: "/api/agents/{agent_id}/skills/env"
tags: ["agents"]
---

# Set Agent Skills Env

`PUT /api/agents/{agent_id}/skills/env`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/skills/env`
- Auth: HTTP bearer

Upsert env vars for skills that gate on them (NOTION_API_KEY,
GOOGLE_PLACES_API_KEY, …) and trigger a container restart so the
agent's gateway picks them up.

## Path parameters

- `agent_id` string, required

## Request body

- SkillEnvBody
  - `env` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
