---
title: "Update a campaign"
method: PATCH
path: "/marketing/campaigns/2026-09/{campaignGuid}"
tags: ["Basic"]
---

# Update a campaign

`PATCH /marketing/campaigns/2026-09/{campaignGuid}`

## Request

- Base URL: `https://api.hubapi.com`
- URL: `https://api.hubapi.com/marketing/campaigns/2026-09/{campaignGuid}`
- Auth: OAuth 2
  - Authorization code: `https://app.hubspot.com/oauth/authorize`
  - Token URL: `https://api.hubapi.com/oauth/v1/token` scopes: `marketing.campaigns.write`

Perform a partial update of a campaign identified by the specified ID. Provided property values will be overwritten. Read-only and non-existent properties will result in a 400 error. Property values can be cleared by passing an empty string. Note: The 'hs_goal' property is deprecated and will be ignored if provided.

## Path parameters

- `campaignGuid` string, required

## Request body

- PublicCampaignInput
  - `properties` object, required: An object containing key-value pairs where each key is a property name and each value is a string representing the property's value. This object holds the various attributes of the campaign.

## Response `200`

successful operation

- PublicCampaign
  - `businessUnits` PublicBusinessUnit[], required: An array of business units associated with the campaign, where each business unit is represented by its unique identifier.
    - `id` integer, required: The unique identifier for the business unit, represented as a 64-bit integer.
  - `createdAt` string, date-time, required: The date and time when the campaign was created, in ISO 8601 format.
  - `id` string, required: The unique identifier for the campaign.
  - `properties` object, required: A map of custom property names to their values, representing specific attributes of the campaign.
  - `updatedAt` string, date-time, required: The date and time when the campaign was last updated, in ISO 8601 format.

## Other responses

- `default`: An error occurred.

---

[API](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api.md) - [All operations](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubspot/apis/marketing-campaigns-public-api/revisions/c1eb1c9b504c?raw)
