---
title: "Update Preset"
method: PUT
path: "/api/v1/network/presets/{preset_id}"
tags: ["network"]
---

# Update Preset

`PUT /api/v1/network/presets/{preset_id}`

## 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/v1/network/presets/{preset_id}`
- Auth: HTTP bearer

Changes the given parts of an account preset.

## Path parameters

- `preset_id` string, required

## Request body

- PresetUpdate
  - `name` string, nullable
  - `allow` string[], nullable
  - `deny` string[], nullable

## Response `200`

Successful Response

- PresetOut
  - `id` string, required
  - `name` string, required
  - `allow` string[], required
  - `deny` string[], required
  - `builtIn` boolean, required
  - `inUse` integer, required

## 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)
