code: def update(self, resource, rid, updates):
          
          if resource[-1] != '/':
              resource += '/'
          resource += str(rid)
          return self.put(resource, data=updates)
docs: Updates the resource with id 'rid' with the given updates dictionary.