code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.WebhookEndpoint.modify(
    "we_1LSdif2eZvKYlo2CBeXfpCQI",
    url="https://example.com/new_endpoint",
  )
  '''Response {
    "id": "we_1LSdif2eZvKYlo2CBeXfpCQI",
    "object": "webhook_endpoint",
    "api_version": null,
    "application": null,
    "created": 1659518305,
    "description": "This is my webhook, I like it a lot",
    "enabled_events": [
      "charge.failed",
      "charge.succeeded"
    ],
    "livemode": false,
    "metadata": {},
    "status": "enabled",
    "url": "https://example.com/new_endpoint"
  }'''
nl: Update a webhook endpointUpdates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.Parameters description optional An optional description of what the webhook is used for. enabled_events optional enum The list of events to enable for this endpoint. You may specify [’*’] to enable all events, except those that require explicit selection.Possible enum valuesaccount.updated Occurs whenever an account status or property has changed.account.application.authorized Occurs whenever a user authorizes an application. Sent to the related application only.account.application.deauthorized Occurs whenever a user deauthorizes an application. Sent to the related application only.account.external_account.created Occurs whenever an external account is created.account.external_account.deleted Occurs whenever an external account is deleted.account.external_account.updated Occurs whenever an external account is updated.application_fee.created Occurs whenever an application fee is created on a charge.Show 182 more 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. url optional The URL of the webhook endpoint.More parametersExpand all  disabled optional ReturnsThe updated webhook endpoint object if successful. Otherwise, this call raises an error