Update Affiliate Campaign
Function
To update some information of an affiliate campaign
更新單個推薦活動資訊
URL
PUT <<api_domain>>/v1/affiliate_campaigns/:id
Request Parameters
Parameter | Type | Description | Example |
|---|---|---|---|
id *Required | String | Affiliate campaign ID | 6049d431709478001d7c496b |
name | String | Affiliate campaign name | Affiliate Campaign Name |
promotion_id | String | Promotion id -null : 不套用折扣 | 5ce0d084e388096bdb229a59 |
partner_info | Object | Partner info | { |
campaign_products | Array[Object] | 指定分潤商品 Add item without id param to array to create new campaign product. 藉由新增不含 id 的物件到陣列中,即可新增新的 Campaign Product。 | { |
start_at | DateTime | Affiliate campaign start time | 2018-01-10T06:33:45.231+00:00 |
end_at | DateTime | Affiliate campaign end time
| 2018-01-10T06:33:45.231+00:00 |
remarks_translations | Remarks translations | {} |
Request Example
curl --location --request PUT '<<api_domain>>/v1/affiliate_campaigns/:id' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer your token' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Update Campaign Name 1670829482",
"promotion_id": null,
"start_at": "2022-12-12T07:18:01.846Z",
"end_at": null
}'Response Field
Updated 13 days ago