Skip to content
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

Feature Request: Partial Schema Config Update using PATCH #2514

Open
etiennedi opened this issue Jan 9, 2023 · 0 comments
Open

Feature Request: Partial Schema Config Update using PATCH #2514

etiennedi opened this issue Jan 9, 2023 · 0 comments
Labels

Comments

@etiennedi
Copy link
Member

The idempotent nature of PUT is sometimes confusing for users. In order to change one prop of a schema, the user needs to first retrieve the schema, make an alteration, then send the schema back to Weaviate. That is correct usage of the PUT verb:

A successful PUT of a given representation would suggest that a subsequent GET on that same target resource will result in an equivalent representation being sent in a 200 (OK) response.
Source: RFC7231

However, it is not the most comfortable way to update a schema. Instead, we could also allow a partial update using PATCH. In this case, the user would only send the property they want to be updated and Weaviate would merge the update with the existing schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant