Campaign Standard — 設定檔建立/更新時的ACS API開發問題

說明 description

有關使用檔案所述方法實作ACS API以建立/更新設定檔的問題:  https://experienceleague.adobe.com/docs/campaign-standard/using/working-with-apis/managing-profiles/updating-profiles.html?lang=en

以下說明有更簡單的方式(以參考屬性 cusId 已定義為設定檔表格上的索引鍵):

1)  當我們PATCH使用 https://*.adobe。*/instanceURL/campaign/profileAndServicesExt/profile 並包含現有 cusCustomerId,則會更新設定檔。

2)  同樣地,當我們PATCH使用https://*.adobe時。*/instanceURLcampaign/profileAndServicesExt/profile/@xxxxxxxxxxxxxxx設定檔也將更新。

在此情況下,客戶不需要使用 cusId,但他們需要設定檔 Pkey不過, cusId 會一律填入,並觀察到他們一律可使用此欄位。

選擇一將是首選方式,因為這使邏輯更簡單。

問題:由於選項1未記錄,請確認選項1是否受支援?

解析度 resolution

cusId 是設定檔中的業務金鑰,此欄位可用來擷取實體。
事實上,PATCH也會奏效。
這可以使用,但應傳達下列限制:

使用cusId欄位作為索引鍵,無法使用PATCH修改欄位。
請勿建立集合的URL。
因此,使用 cusId 欄位適用於頂層設定檔資源 (/rest/.../profile/ cusId ),  但如果客戶想要取得設定檔的訂閱,必須透過REST API:

  • GET /rest/.../profile/cusId

  • GET /href/of/the/subscription/collection/returned/by/the/previous/call

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f