code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.billing_portal.Configuration.modify(
    "bpc_1LSdxb2eZvKYlo2CcDwiZ8Hp",
    business_profile={
      "privacy_policy_url":
      "https://example.com/privacy",
      "terms_of_service_url":
      "https://example.com/terms",
    },
  )
  '''Response {
    "id": "bpc_1LSdxb2eZvKYlo2CcDwiZ8Hp",
    "object": "billing_portal.configuration",
    "active": true,
    "application": null,
    "business_profile": {
      "headline": null,
      "privacy_policy_url": "https://example.com/privacy",
      "terms_of_service_url": "https://example.com/terms"
    },
    "created": 1659519231,
    "default_return_url": null,
    "features": {
      "customer_update": {
        "allowed_updates": [
          "email",
          "tax_id"
        ],
        "enabled": true
      },
      "invoice_history": {
        "enabled": true
      },
      "payment_method_update": {
        "enabled": false
      },
      "subscription_cancel": {
        "cancellation_reason": {
          "enabled": false,
          "options": []
        },
        "enabled": false,
        "mode": "at_period_end",
        "proration_behavior": "none"
      },
      "subscription_pause": {
        "enabled": false
      },
      "subscription_update": {
        "default_allowed_updates": [],
        "enabled": false,
        "proration_behavior": "none"
      }
    },
    "is_default": true,
    "livemode": true,
    "metadata": null,
    "updated": 1659519231,
    "customer": "cus_8TEMHVY5moxIPI"
  }'''
nl: Update a portal configurationUpdates a configuration that describes the functionality of the customer portal.Parameters active optional Whether the configuration is active and can be used to create portal sessions. business_profile optional dictionary The business information shown to customers in the portal.Show child parameters default_return_url optional The default URL to redirect customers to when they click on the portal’s link to return to your website. This can be overriden when creating the session. features optional dictionary Information about the features available in the portal.Show child parameters metadata optional dictionary Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.ReturnsReturns a portal configuration object