curl -X PATCH "https://api.affonso.io/v1/program/notifications/welcome" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!"
}'
{
"success": true,
"data": {
"id": "cmvicip2d000d711cwlezg3nt",
"email_type_id": "welcome",
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate joins a program",
"icon": "Mail",
"is_customizable": true,
"target_audience": "affiliate"
}
}
}
Notifications
Update Notification Setting
Update a notification setting by email type ID
PATCH
/
v1
/
program
/
notifications
/
{emailTypeId}
curl -X PATCH "https://api.affonso.io/v1/program/notifications/welcome" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!"
}'
{
"success": true,
"data": {
"id": "cmvicip2d000d711cwlezg3nt",
"email_type_id": "welcome",
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate joins a program",
"icon": "Mail",
"is_customizable": true,
"target_audience": "affiliate"
}
}
}
Update a notification setting for a specific email type. If no custom setting exists yet, it will be created. All fields are optional.
Use
campaign-submission-approved as emailTypeId to enable, disable, or customize the email sent to the partner after a campaign submission is approved. Disabling it does not affect earning creation.
The same operation is available through the
affonso_update_email_notification MCP tool.Path Parameters
Body Parameters
Custom email subject line. Maximum 20,000 characters. Set to
null to revert to default.Custom email body content. Maximum 20,000 characters. Set to
null to revert to default.Response
Returns the updated notification setting object. Same structure as items in the List Notification Settings response.curl -X PATCH "https://api.affonso.io/v1/program/notifications/welcome" \
-H "Authorization: Bearer sk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!"
}'
{
"success": true,
"data": {
"id": "cmvicip2d000d711cwlezg3nt",
"email_type_id": "welcome",
"is_active": true,
"custom_subject": "Welcome to the Acme affiliate family!",
"custom_body": null,
"type": {
"name": "Welcome Email",
"description": "Sent when an affiliate joins a program",
"icon": "Mail",
"is_customizable": true,
"target_audience": "affiliate"
}
}
}
Was this page helpful?
