My synonyms are stored in a database and, when the synonyms are changed in the database, I want to update any values in the index which may be changed as a result of the synonym
You've flipped mysynonymfilter and synonym in your final curl command. The type should be synonym.
mysynonymfilter
synonym