According to the official documentation, it is possible to use the version parameter in the update API to specify that the document should only be updated if its version matches the one specified.
But this parameter has recently been removed from the whitelist for update endpoint: 56163ff (@ezimuel).
Accordingly, using version is now triggering an exception.
Version: Elasticsearch 7.3 / Elasticsearch-php 7.2