Skip to content

'version' no longer supported in update API #941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
etlel opened this issue Aug 25, 2019 · 2 comments
Closed

'version' no longer supported in update API #941

etlel opened this issue Aug 25, 2019 · 2 comments

Comments

@etlel
Copy link

etlel commented Aug 25, 2019

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

@ezimuel
Copy link
Contributor

ezimuel commented Aug 26, 2019

@etel according to the API specifications that I use to generate the parameters endpoint, version is not allowed anymore, see here.
I just opened elastic/elasticsearch#45961 to check if this a documentation issue or not.

@ezimuel
Copy link
Contributor

ezimuel commented Aug 26, 2019

Just found that we don't support anymore the version parameter for Update API, see elastic/elasticsearch#43516. The online documentation must be fixed. I'm working on it, thanks for reporting the issue.

@ezimuel ezimuel closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants