curl --request POST \
--url https://api.hubapi.com/marketing/campaigns/2026-03 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"properties": {}
}
'{
"businessUnits": [
{
"id": 123
}
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"properties": {},
"updatedAt": "2023-11-07T05:31:56Z"
}指定されたプロパティーでキャンペーンを作成し、IDを含むキャンペーンオブジェクトのコピーを受け取ります。「hs_goal」プロパティーは非推奨であり、指定されても無視されます。
curl --request POST \
--url https://api.hubapi.com/marketing/campaigns/2026-03 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"properties": {}
}
'{
"businessUnits": [
{
"id": 123
}
],
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"properties": {},
"updatedAt": "2023-11-07T05:31:56Z"
}Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
キャンペーンのプロパティーを表す、キーと値のペアのコレクション。各キーはプロパティー名であり、対応する値はプロパティーの値です。
Show child attributes
successful operation
キャンペーンに関連付けられているビジネスユニットの配列。各ビジネスユニットはPublicBusinessUnitオブジェクトで表されます。
Show child attributes
日付-時刻文字列として書式設定される、キャンペーンが作成された日時。
キャンペーンの固有ID。
キャンペーンの追加プロパティーを表す、キーと値のペアのコレクション。
Show child attributes
日付-時刻文字列として書式設定される、キャンペーンが最後に更新された日時。