class Account::Webhooks::Outgoing::EndpointsController
def update
PATCH/PUT /account/webhooks/outgoing/endpoints/:id
def update respond_to do |format| if @endpoint.update(endpoint_params) format.html { redirect_to [:account, @endpoint], notice: I18n.t("webhooks/outgoing/endpoints.notifications.updated") } format.json { render :show, status: :ok, location: [:account, @endpoint] } else format.html { render :edit, status: :unprocessable_entity } format.json { render json: @endpoint.errors, status: :unprocessable_entity } end end end