curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promoter_campaigns/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ref_token": "<string>"
}'
{
"id": 123,
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"state": "accepted",
"promoter_id": 123,
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123
},
"coupon": {},
"display_coupon": {},
"ref_token": "<string>",
"ref_link": "<string>",
"has_monetary_rewards": true,
"rewards_for_promoters": [
{
"apply_on": "<string>",
"product_ids": [
"<string>"
],
"reward_id": 123,
"reward": {
"name": "<string>",
"promoter_reward_type": "<string>",
"hide_reward": true,
"tier_level": 123,
"coupon": {}
},
"products": {}
}
],
"rewards_for_referrals": [
{}
],
"promo_codes": [
{}
],
"recruitment_link_url": "<string>"
}
curl --request PUT \
--url https://v2.firstpromoter.com/api/v2/affiliate/promoter_campaigns/{id} \
--header 'Account-ID: <account-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ref_token": "<string>"
}'
{
"id": 123,
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"campaign": {
"id": 123,
"name": "<string>",
"color": "<string>"
},
"state": "accepted",
"promoter_id": 123,
"stats": {
"clicks_count": 123,
"referrals_count": 123,
"sales_count": 123,
"customers_count": 123,
"revenue_amount": 123
},
"coupon": {},
"display_coupon": {},
"ref_token": "<string>",
"ref_link": "<string>",
"has_monetary_rewards": true,
"rewards_for_promoters": [
{
"apply_on": "<string>",
"product_ids": [
"<string>"
],
"reward_id": 123,
"reward": {
"name": "<string>",
"promoter_reward_type": "<string>",
"hide_reward": true,
"tier_level": 123,
"coupon": {}
},
"products": {}
}
],
"rewards_for_referrals": [
{}
],
"promo_codes": [
{}
],
"recruitment_link_url": "<string>"
}
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
The id of the promoter_campaign to be updated
Promoter campaign updated successfully
The response is of type object
.