Skip to content

Cannot enable a webhook endpoint that is disabled #106

@awendt

Description

@awendt

Hello!

I am trying to enable a webhook endpoint that is currently disabled with one of these:

(byebug) ChargeBee::WebhookEndpoint.update(id, url: new_uri.to_s, disabled: false)
#<ChargeBee::Result:0x000000010e945408 @response={:webhook_endpoint=>{:api_version=>"v2", :id=>"REDACTED", :name=>"REDACTED", :disabled=>true, …}, @http_status_code=200>
(byebug) ChargeBee::WebhookEndpoint.update(id, { url: new_uri.to_s, disabled: false })
#<ChargeBee::Result:0x000000010efb8a88 @response={:webhook_endpoint=>{:api_version=>"v2", :id=>"REDACTED", :name=>"REDACTED", :disabled=>true, …}, @http_status_code=200>

Expected behavior

  • response includes disabled: false
  • UI shows the endpoint as activated

Actual behavior

  • response includes disabled: true
  • UI still shows the endpoint as deactivated

In effect, the parameter is ignored. Not sure if it's of any relevance, the url is the same as before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions