---
title: "Edit content while paused"
method: PATCH
path: "/campaigns/{campaignKey}/content"
tags: ["campaigns"]
---

# Edit content while paused

`PATCH /campaigns/{campaignKey}/content`

## Request

- Base URL: `https://api.mailly.site` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mailly.site/campaigns/{campaignKey}/content`
- Auth: HTTP bearer

Updates subject/html/text; queued but undelivered messages are rebuilt with the new content_revision on resume.

## Path parameters

- `campaignKey` string, required: campaign stable key

## Request body

- object
  - `subject` string
  - `html` string, nullable
  - `text` string, nullable

## Response `200`

Updated

- object
  - `success` boolean, required
  - `changed` boolean, required
  - `campaign` object, required
  - `deferredRecipientCount` number, required

## Other responses

- `400`: Invalid parameters
- `401`: Missing or invalid API key
- `404`: Campaign not found
- `409`: Content cannot be edited in the current state

---

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