Instead of trying to use the updateVariation action described in the documents, just get the index of the flag variation you want to update and do a patch request with the index in the file path.
updateVariation