---
title: "Update a draft campaign"
method: PATCH
path: "/campaigns/{id}"
tags: ["Campaigns"]
---

# Update a draft campaign

`PATCH /campaigns/{id}`

Only draft campaigns (not yet sent) can be updated. All fields are optional.

## Request body

- object
  - `title` string
  - `subject` string
  - `preview_text` string, nullable — Inbox preview snippet. Pass null to clear.
  - `html` string
  - `from_name` string
  - `from_email` string, email
  - `scheduled_at` string, date-time, nullable — Set to null to unschedule, or a datetime to schedule
  - `lists` integer[] — Replaces all list assignments
  - `excluded_lists` integer[] — Replaces the excluded lists (contacts in these lists are removed from the send).
  - `to_contact_tags` integer[] — Replaces the included tag audience (contacts carrying these tags receive the campaign).
  - `excluded_contact_tags` integer[] — Replaces the excluded tag audience (contacts carrying these tags are removed from the send).

## Response `200`

Campaign updated successfully

- Campaign
  - `id` integer
  - `title` string, required
  - `subject` string, required
  - `preview_text` string, nullable — Inbox preview snippet shown beneath the subject line in most email clients.
  - `html` string, required
  - `from_name` string, required
  - `from_email` string, email, required
  - `scheduled_at` string, date-time, nullable
  - `sent_at` string, date-time, nullable
  - `timezone` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `403` — Forbidden. Most often an ownership/authorization failure (Laravel's default `{"message": "..."}` shape). If the account is restricted by SendFox, the response instead carries the structured `account_restricted` body with a link to the account status page.
- `409` — Campaign already sent
- `422` — Validation error

---

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