curl -X PATCH "https://api.affonso.io/v1/program/portal" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"primary_color": "#881337",
"hide_branding": true,
"show_leaderboard": true,
"support_email_status": true,
"support_email_value": "affiliates@acme.com"
}'
{
"success": true,
"data": {
"single_program_portal": false,
"hide_branding": true,
"hide_details": false,
"primary_color": "#881337",
"secondary_color": null,
"show_leaderboard": true,
"terms_conditions_status": false,
"terms_conditions_value": null,
"privacy_policy_status": false,
"privacy_policy_value": null,
"support_email_status": true,
"support_email_value": "affiliates@acme.com",
"custom_texts": null
}
}
Portal
Update Portal Settings
Update portal appearance, branding, and policy settings
PATCH
/
v1
/
program
/
portal
curl -X PATCH "https://api.affonso.io/v1/program/portal" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"primary_color": "#881337",
"hide_branding": true,
"show_leaderboard": true,
"support_email_status": true,
"support_email_value": "affiliates@acme.com"
}'
{
"success": true,
"data": {
"single_program_portal": false,
"hide_branding": true,
"hide_details": false,
"primary_color": "#881337",
"secondary_color": null,
"show_leaderboard": true,
"terms_conditions_status": false,
"terms_conditions_value": null,
"privacy_policy_status": false,
"privacy_policy_value": null,
"support_email_status": true,
"support_email_value": "affiliates@acme.com",
"custom_texts": null
}
}
Update your affiliate portal settings. All fields are optional. If no portal settings exist yet, they will be created.
Body Parameters
Support email address. Must be a valid email, max 255 characters. Set to
null to clear.Response
Returns the updated portal settings object. Same structure as the Get Portal Settings response.curl -X PATCH "https://api.affonso.io/v1/program/portal" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"primary_color": "#881337",
"hide_branding": true,
"show_leaderboard": true,
"support_email_status": true,
"support_email_value": "affiliates@acme.com"
}'
{
"success": true,
"data": {
"single_program_portal": false,
"hide_branding": true,
"hide_details": false,
"primary_color": "#881337",
"secondary_color": null,
"show_leaderboard": true,
"terms_conditions_status": false,
"terms_conditions_value": null,
"privacy_policy_status": false,
"privacy_policy_value": null,
"support_email_status": true,
"support_email_value": "affiliates@acme.com",
"custom_texts": null
}
}
Was this page helpful?
