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

[Request] API PATCH requests for changing single config values #604

Open
morph027 opened this issue Feb 19, 2023 · 1 comment
Open

[Request] API PATCH requests for changing single config values #604

morph027 opened this issue Feb 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@morph027
Copy link

morph027 commented Feb 19, 2023

Is your feature request related to a problem? Please describe.

When changing config via API, we always need to send the complete data structure, even when changing just one single value. This makes it quite hard to integrate into simple tools (e.g. HA automations)

Describe the solution you'd like

Add PATCH methods to API to update single values.

Describe alternatives you've considered

No response

Additional context

No response

@morph027 morph027 added the enhancement New feature or request label Feb 19, 2023
@morph027 morph027 changed the title [Request] API PUT requests for changing single config values [Request] API PATCH requests for changing single config values Feb 21, 2023
@stefan123t
Copy link
Contributor

Interesting API feature to have PATCH method for modifying values using a sparse JSON request.

I do not know if this is feasible as we are using the complete JSON and parse the values from it to update them in a batch.
We may have to separate this into individual SET-ter methods for each key value.
Maybe this is too much for the little ESP32 chip ?

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

No branches or pull requests

2 participants