def update_note(client, note_id, title, tags, content):
    """Update an existing note"""
    return client.post("/update", data=dict(
        note_id=note_id,
        title=title,
        tags=tags,
        content=content
    ), follow_redirects=True)