---
search:
  tags:
    - Operations
    - PATCH
seo:
  description: >-
    Applies an edits[] array to the stored module / ui / styles buckets. Each
    edit… Reference for the PATCH /app/{id}/source endpoint in the Charming API
    API.
sidebar:
  badge: PATCH
  label: Apply exact-string find/replace edits to the persisted source
title: Apply exact-string find/replace edits to the persisted source
type: openapi-operation
---
Applies an `edits[]` array to the stored `module` / `ui` / `styles` buckets. Each edit names a `bucket`, an exact `old_string` to match, and a `new_string` replacement. Requires `If-Match: "<N>"` carrying revision N from a fresh source response or ETag. A stale value returns 412 and surfaces the current ETag. Same auth as PUT.

<Operation source="reference" id="patch-app-source" />

Found a bug or need a feature? [Tell us](/docs/capabilities/feedback) with `submit_feedback` or `POST /app/{id}/feedback`. Your feedback shapes what we build next.
