---
title: "Replace the files of a private plugin"
method: PUT
path: "/api/plugin_settings/{plugin_setting_id}/files"
tags: ["Plugin Settings"]
---

# Replace the files of a private plugin

`PUT /api/plugin_settings/{plugin_setting_id}/files`

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/plugin_settings/{plugin_setting_id}/files`
- Auth: HTTP bearer

The same files uploadPluginSettingArchive takes zipped, as text by filename. settings.yml is required; a markup file left out keeps its current content.

## Request body

- object
  - `files` object, required

## Response `200`

Persists a settings-only import, with no markup file to save through

- object
  - `data` PluginSettingArchive
    - `settings_yaml` string: YAML settings file

## Other responses

- `401`: Unauthorized
- `404`: Plugin setting belongs to another user
- `422`: settings.yml missing or malformed

---

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