Skip to main content
PUT
/
v1
/
program
Update program
curl --request PUT \
  --url https://api.example.com/v1/program
{
  "status": 1,
  "message": "Program updated successfully"
}

Endpoint

PUT https://api.partnero.com/v1/program
Update program details, settings, and portal configuration. Available fields depend on the program type.

Request body

Common fields
ParameterTypeRequiredDescription
namestringNoProgram name (max 255 characters)
websitestringNoProgram landing page URL (max 250 characters)
Affiliate program settings (program_settings)
ParameterTypeDescription
currencystring3-letter currency code (e.g., USD, EUR)
cookie_lifetimeintegerReferral cookie duration in days (1–9,999,999)
welcome_email_enabledbooleanSend welcome email to new partners
onboarding_enabledbooleanEnable partner onboarding flow
partner_email_notifications_enabledbooleanEnable email notifications for partners
Affiliate portal settings (portal_settings)
ParameterTypeDescription
program_page_enabledbooleanEnable the public program page
leads_page_enabledbooleanEnable the lead submission page
registration_disabledbooleanDisable portal registration
google_login_enabledbooleanEnable Google login/signup
passwordless_login_enabledbooleanEnable passwordless (OTP) login
sub_accounts_enabledbooleanEnable partner sub-accounts
widget_enabledbooleanEnable the portal widget
signup_popup_enabledbooleanEnable signup pop-up form
embeddable_form_enabledbooleanEnable embeddable signup form
Refer-a-friend program settings (program_settings)
ParameterTypeDescription
referral_portal_enabledbooleanEnable the referral portal
rewards_notification_enabledbooleanSend reward notification emails
Refer-a-friend portal settings (portal_settings)
ParameterTypeDescription
registration_disabledbooleanDisable portal registration
program_page_enabledbooleanEnable the program page
widget_enabledbooleanEnable the portal widget
embeddable_form_enabledbooleanEnable the embeddable refer-a-friend form
popup_form_enabledbooleanEnable the pop-up refer-a-friend form

Request examples

curl --location --request PUT 'https://api.partnero.com/v1/program' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "My Updated Program",
    "website": "https://yourcompany.com",
    "program_settings": {
      "currency": "USD",
      "cookie_lifetime": 30,
      "welcome_email_enabled": true
    },
    "portal_settings": {
      "program_page_enabled": true,
      "google_login_enabled": true
    }
  }'

Response

{
  "status": 1,
  "message": "Program updated successfully"
}
Only include the fields you want to update. All fields are optional—omitted fields remain unchanged.