code: def update_resource(resource, incoming_request):
      
      resource.from_dict(get_resource_data(incoming_request))
      _perform_database_action('merge', resource)
      return no_content_response()
docs: Replace the contents of a resource with *data* and return an appropriate
      *Response*.
  
      :param resource: :class:`sandman.model.Model` to be updated
      :param data: New values for the fields in *resource*