class Api::V1::Webhooks::Outgoing::EndpointsController

def update

PATCH/PUT /api/v1/webhooks/outgoing/endpoints/:id
def update
  if @endpoint.update(endpoint_params)
    render :show
  else
    render json: @endpoint.errors, status: :unprocessable_entity
  end
end