code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.SubscriptionSchedule.modify(
    "sub_sched_1JuFVT2eZvKYlo2CSOQvG7P6",
    end_behavior="release",
  )
  '''Response {
    "id": "sub_sched_1JuFVT2eZvKYlo2CSOQvG7P6",
    "object": "subscription_schedule",
    "application": null,
    "canceled_at": 1637053645,
    "completed_at": null,
    "created": 1636545743,
    "current_phase": null,
    "customer": "cus_8TEMHVY5moxIPI",
    "default_settings": {
      "application_fee_percent": null,
      "automatic_tax": {
        "enabled": false
      },
      "billing_cycle_anchor": "automatic",
      "billing_thresholds": null,
      "collection_method": "charge_automatically",
      "default_payment_method": null,
      "invoice_settings": null,
      "transfer_data": null
    },
    "end_behavior": "release",
    "livemode": false,
    "metadata": {},
    "phases": [
      {
        "add_invoice_items": [],
        "application_fee_percent": null,
        "billing_cycle_anchor": null,
        "billing_thresholds": null,
        "collection_method": null,
        "coupon": null,
        "default_payment_method": null,
        "default_tax_rates": [],
        "end_date": 1668685170,
        "invoice_settings": null,
        "items": [
          {
            "billing_thresholds": null,
            "price": "plan_JiX4v6L7JY0Vyt",
            "quantity": 1,
            "tax_rates": []
          }
        ],
        "metadata": {},
        "proration_behavior": "create_prorations",
        "start_date": 1637149170,
        "transfer_data": null,
        "trial_end": null
      }
    ],
    "released_at": null,
    "released_subscription": null,
    "status": "canceled",
    "subscription": null,
    "test_clock": null
  }'''
nl: Update a scheduleUpdates an existing subscription schedule.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. phases optional array of hashes List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the end_date of one phase will always equal the start_date of the next phase. Note that past phases can be omitted.Show child parameters proration_behavior optional enum If the update changes the current phase, indicates whether the changes should be prorated. The default value is create_prorations. Possible enum valuesnone create_prorations Prorate changes, but leave any prorations as pending invoice items to be picked up on the customer’s next invoice.More parametersExpand all  default_settings optional dictionary   end_behavior optional ReturnsReturns an updated subscription schedule object if the call succeeded