PUT
/
email_settings
/
{id}
curl --request PUT \
  --url https://v2.firstpromoter.com/api/v2/affiliate/email_settings/{id} \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "e": "<string>",
  "marketing_consent": true,
  "emails_opt_drip": true,
  "emails_opt_new_commission": true,
  "emails_opt_new_referral": true,
  "emails_opt_payout": true
}'
{
  "id": 123,
  "company_domain": "<string>",
  "emails_opt_drip": true,
  "emails_opt_new_commission": true,
  "emails_opt_new_referral": true,
  "emails_opt_payout": true,
  "company_name": "<string>",
  "marketing_consent": true
}

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Path Parameters

id
integer
required

Promoter ID

Body

application/json

Response

200
application/json

Email settings updated successfully

The response is of type object.