Create or update a patterns configuration