---
title: "POST /patch.saveFileAsPatch"
method: POST
path: "/patch.saveFileAsPatch"
tags: ["patch"]
---

# POST /patch.saveFileAsPatch

`POST /patch.saveFileAsPatch`

## Request body

- object
  - `id` string, required
  - `type` 'application' | 'compose', required
  - `filePath` string, required
  - `content` string, required
  - `patchType` 'create' | 'update'

## Response `200`

Successful response

- object

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/dokploy/apis/dokploy-api.md) · [All operations](https://skmtc.net/dokploy/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dokploy/dokploy-api/versions/0c21b2084cd6/schema)
