Skip to main content
PATCH
Change Campaign Details

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Path Parameters

campaignId
string
required

Body

application/json
expectedRevision
integer
required
Required range: x <= 9007199254740991
name
string
Required string length: 2 - 160
objective
string
Maximum string length: 8000
brand
string
Maximum string length: 160
ownerId
string

Organization member ID or eligible oauth: actor from campaign options.

Required string length: 1 - 160
approverId
string

Explicit named approver: organization member ID or eligible oauth: actor from campaign options. Other users and API clients cannot approve on this actor's behalf.

Required string length: 1 - 160
timezone
string
stores
object[]
Maximum array length: 100
serviceRequest
string
Maximum string length: 300
priority
enum<string>
Available options:
standard,
priority,
super_priority
documentIds
string[]
Maximum array length: 100
Required string length: 1 - 160
reviewDueAt
string<date-time> | null
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
sourceCurrency
string
Pattern: ^[A-Z]{3}$
sourceMarketplace
enum<string>
Available options:
shopee,
lazada,
tiktok,
shopify,
whatsapp,
zalora,
amazon,
ebay
sourceCountry
string
Maximum string length: 80
syncMode
enum<string>
Available options:
offer_windows,
campaign_start
cleanupNotes
string
Maximum string length: 8000
offers
object[]

Add or update promotions by stable offer id. Existing IDs patch only supplied fields; new IDs require windowId and promotion terms. Omitted offers stay unchanged.

Maximum array length: 500
windows
object[]

Add or update windows by stable id. Existing IDs patch only supplied fields; new IDs require name, startsAt and endsAt. Omitted windows stay unchanged.

Maximum array length: 100
removeWindowIds
string[]

Delete these windows. Move or remove their promotions in the same call. Maximum 100 IDs.

Maximum array length: 100
Required string length: 1 - 160
removeOfferIds
string[]

Delete these draft promotion offers. Maximum 500 IDs.

Maximum array length: 500
Required string length: 1 - 160
organizationId
string

Required for session auth. Optional for an API key, which already identifies the organization.

Required string length: 1 - 120
expectedPendingVersion
integer | null
Required range: 0 < x <= 9007199254740991

Response

Campaign detail: plan, revision, executions, audit, schedule, and progress.

campaign
object
required
executions
object[]
required
audit
object[]
required
readiness
string[]
required

Issues that block approving or running the current plan.

pendingChangeIssues
string[]
required

Issues that block approving the proposed live change.

pendingScheduleCount
integer
required
Required range: 0 <= x <= 9007199254740991
failedScheduleCount
integer
required
Required range: 0 <= x <= 9007199254740991
waitingBrowserJobCount
integer
required
Required range: 0 <= x <= 9007199254740991
scheduleIssues
object[]
recovery
object[]
cleanupFailed
boolean
progress
object