> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Campaign

> Update details of an existing draft or scheduled campaign.

Update properties such as name, subject, template, or schedule for a campaign.

### Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the campaign.
</ParamField>

### Body Parameters

<ParamField body="name" type="string">
  The campaign name.
</ParamField>

<ParamField body="subject" type="string">
  The email subject line.
</ParamField>

<ParamField body="content" type="string">
  HTML content for the campaign.
</ParamField>

<ParamField body="scheduledAt" type="string">
  ISO 8601 timestamp to reschedule delivery.
</ParamField>

### Response

<ResponseField name="data" type="object">
  <ResponseField name="id" type="string">The campaign ID.</ResponseField>
  <ResponseField name="name" type="string">The updated campaign name.</ResponseField>
  <ResponseField name="status" type="string">Campaign status.</ResponseField>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.mailofly.com/api/v1/campaigns/cmp_123 \
    -H "Authorization: Bearer mf_live_your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Summer Product Launch (Updated)",
      "subject": "Exclusive early access inside!"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "cmp_123",
      "name": "Summer Product Launch (Updated)",
      "status": "draft"
    }
  }
  ```
</ResponseExample>


## Related topics

- [Email types](/getting-started/email-types.md)
- [Create Campaign](/api/campaigns/create-campaign.md)
- [Index](/changelog/index.md)
- [Delete Campaign](/api/campaigns/delete-campaign.md)
- [Retrieve Campaign](/api/campaigns/get-campaign.md)
