Apply exact-string find/replace edits to the persisted source
Applies an edits[] array to desired module/ui/styles. ESM saves require Idempotency-Key, return 202, and preserve active output until publication. An exact request-key replay returns the original operation before stale revision or edit matching checks. 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.
Request
- Base URL: https://charm.ing
- URL: https://charm.ing/app/{id}/source
- Auth: one of:
- HTTP bearer
- HTTP bearer
Headers
Required for ESM saves. Reuse the same key, body, target and If-Match after response loss; a changed request with that key returns idempotency_conflict. Use a fresh key for each intentional save.
Validator "<N>" returned by a fresh GET /source, where N is its revision. The weak form W/"<N>" is accepted too, so a client can pass back the ETag verbatim even when a CDN rewrote it in transit.
Request body
Response
Edits applied; committed server revision returned.
Example response
{
"revision": 4
}Changes
No recorded changes to this operation across all 1 revision of this API.