Skip to main content
PATCH
Update a campaign

Authorizations

Authorization
string
header
required

Account Service Key, prefixed with pho_ask_, sent as Authorization: Bearer <key>. Acts on behalf of its owning account, subject to the permissions and credential restrictions of each operation. Account access tokens and OAuth grants also use the Bearer header. In organizations that require SSO, Account Service Keys are not accepted for managing the organization's SSO settings, deleting the organization, or checking whether it can be deleted.

Headers

Idempotency-Key
string
required

Identifies one campaign mutation across retries. UUIDs are recommended.

Required string length: 8 - 128
Pattern: ^[!-~]{8,128}$

Path Parameters

campaignId
string
required
Pattern: ^pho_cmp_[0-9a-z]{26}$
organization_id
string
required
Pattern: ^pho_org_[0-9a-z]{26}$

Body

application/json
etag
string
required
Required string length: 1 - 256
updateMask
enum<string>[]
required
Required array length: 1 - 15 elements
Available options:
name,
description,
messageFlow,
sampleMessages,
optInMessage,
optOutMessage,
helpMessage,
optInKeywords,
optOutKeywords,
helpKeywords,
privacyPolicyUrl,
termsAndConditionsUrl,
embeddedLinks,
embeddedPhoneNumbers,
embeddedLinkSample
description
string
Required string length: 40 - 4096
Maximum string length: 2048
embeddedPhoneNumbers
boolean
helpKeywords
string[]
Minimum array length: 1
Pattern: ^[A-Z0-9]+$
helpMessage
string
Required string length: 20 - 320
messageFlow
string
Required string length: 40 - 2048
name
string
Required string length: 1 - 64
optInKeywords
string[]
Minimum array length: 1
Pattern: ^[A-Z0-9]+$
optInMessage
string
Required string length: 20 - 320
optOutKeywords
string[]
Minimum array length: 1
Pattern: ^[A-Z0-9]+$
optOutMessage
string
Required string length: 20 - 320
privacyPolicyUrl
string<uri>
Maximum string length: 2048
sampleMessages
string[]
Required array length: 2 - 5 elements
Required string length: 20 - 255
termsAndConditionsUrl
string<uri>
Maximum string length: 2048

Response

The campaign after a local save or a completed sample update.

campaign
object
required