---
title: "Update Campaign"
description: "How to call Update Campaign (PATCH /api/campaigns/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/update_campaign"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_campaign"
operationId: "update_campaign"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/campaigns/{id}"
authentication: "privateKey"
scopes: ["campaigns:write"]
rateLimits: {"burst":"10/s","steady":"150/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/campaigns/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_campaigns.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_campaign_recipient_estimation.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_campaign_clone.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tags_for_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tag_ids_for_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_messages_for_campaign.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_message_ids_for_campaign.md"]
---

# Update Campaign

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/update_campaign

```http
PATCH https://a.klaviyo.com/api/campaigns/{id}
```

Update a campaign with the given campaign ID.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `campaigns:write`
- Rate limits: Burst: `10/s`, Steady: `150/m`

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/campaigns/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "campaign",
    "id": "string",
    "attributes": {
      "name": "My new campaign"
    }
  }
}'
```

## Path parameters

- `id` (string, required): The campaign ID to be retrieved

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `campaign`
  - `id` (string, required): The campaign ID to be retrieved
  - `attributes` (object, required)
    - `name` (string, nullable): The campaign name Example: `My new campaign`
    - `audiences` (object)
      - `included` (string[], nullable): An optional list of included audiences, will override existing included audiences
      - `excluded` (string[], nullable): An optional list of excluded audiences, will override exising excluded audiences
    - `send_options` (oneOf, nullable): Options to use when sending a campaign
      - One of:
        - Option 1: `EmailSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `SMSSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `PushSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tracking_options` (oneOf, nullable): The tracking options associated with the campaign
      - One of:
        - Option 1: `CampaignsEmailTrackingOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `CampaignsSMSTrackingOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `send_strategy` (oneOf, nullable): The send strategy the campaign will send with
      - One of:
        - Option 1: `StaticSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `ThrottledSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `ImmediateSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 4: `SmartSendTimeStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.

### Example request body

```json
{
  "data": {
    "type": "campaign",
    "id": "string",
    "attributes": {
      "name": "My new campaign"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `campaign`
  - `id` (string, required): The campaign ID
  - `attributes` (object, required)
    - `name` (string, required): The campaign name
    - `status` (string, required): The current status of the campaign Allowed values: `Adding Recipients`, `Cancelled`, `Cancelled: Account Disabled`, `Cancelled: Internal Error`, `Cancelled: No Recipients`, `Cancelled: Smart Sending`, `Draft`, `Preparing to schedule`, `Preparing to send`, `Queued without Recipients`, `Scheduled`, `Sending`, `Sending Segments`, `Sent`, `Unknown`, `Variations Sent`
    - `archived` (boolean, required): Whether the campaign has been archived or not
    - `audiences` (object, required)
      - `included` (string[], required): A list of included audiences
      - `excluded` (string[], nullable): An optional list of excluded audiences
    - `send_options` (oneOf, required): Options to use when sending a campaign
      - One of:
        - Option 1: `EmailSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `SMSSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `PushSendOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tracking_options` (oneOf, nullable): The tracking options associated with the campaign
      - One of:
        - Option 1: `CampaignsEmailTrackingOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `CampaignsSMSTrackingOptions` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `send_strategy` (oneOf, required): The send strategy the campaign will send with
      - One of:
        - Option 1: `StaticSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 2: `ThrottledSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 3: `ImmediateSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 4: `SmartSendTimeStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 5: `ABTestSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
        - Option 6: `UnsupportedSendStrategy` Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `created_at` (string<date-time>, required): The datetime when the campaign was created Example: `2022-11-08T00:00:00+00:00`
    - `scheduled_at` (string<date-time>, nullable): The datetime when the campaign was scheduled for future sending Example: `2022-11-08T00:00:00+00:00`
    - `updated_at` (string<date-time>, required): The datetime when the campaign was last updated by a user or the system Example: `2022-11-08T00:00:00+00:00`
    - `send_time` (string<date-time>, nullable): The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job. Example: `2022-11-08T00:00:00+00:00`
  - `relationships` (object)
    - `campaign-messages` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `tags` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (RelationshipLinks): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "campaign",
    "id": "string",
    "attributes": {
      "name": "string",
      "status": "Adding Recipients",
      "archived": true,
      "audiences": {
        "included": [
          "Y6nRLr"
        ],
        "excluded": [
          "UTd5ui"
        ]
      },
      "send_options": {
        "use_smart_sending": true
      },
      "tracking_options": {
        "add_tracking_params": true,
        "custom_tracking_params": [
          {
            "type": "dynamic",
            "value": "campaign_id",
            "name": "utm_medium"
          }
        ],
        "is_tracking_clicks": true,
        "is_tracking_opens": true
      },
      "send_strategy": {
        "method": "static",
        "datetime": "2022-11-08T00:00:00+00:00",
        "options": {
          "is_local": true,
          "send_past_recipients_immediately": false
        }
      },
      "created_at": "2022-11-08T00:00:00+00:00",
      "scheduled_at": "2022-11-08T00:00:00+00:00",
      "updated_at": "2022-11-08T00:00:00+00:00",
      "send_time": "2022-11-08T00:00:00+00:00"
    },
    "relationships": {
      "campaign-messages": {
        "data": [
          {
            "type": "campaign-message",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      },
      "tags": {
        "data": [
          {
            "type": "tag",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
