def update(note)
      validate_type!(note)
      params = extract_params!(note, :id)
      id = params[:id]

      attributes = sanitize(note)
      _, _, root = @client.put("/notes/#{id}", attributes)

      Note.new(root[:data])
    end
def update(note)
      validate_type!(note)
      params = extract_params!(note, :id)
      id = params[:id]

      attributes = sanitize(note)
      _, _, root = @client.put("/notes/#{id}", attributes)

      Note.new(root[:data])
    end
Update a note

 put '/notes/{id}'

 Updates note information
 If the note ID does not exist, this request will return an error

 @param note [Note, Hash] Either object of the Note type or Hash. This object's attributes describe the object to be updated.
 @return [Note] The resulting object represting updated resource.