code: def edit_resource(self, request):
          
          self.location_query = request.uri_query
          self.payload = (request.content_type, request.payload)
docs: Helper function to edit a resource
  
          :param request: the request that edit the resource