We've come across the following case when working on REST API.
Users have the ability to expand the product deployment by installing custom JSON configurations. These configurations tend to be lengthy and are generated automatically.
We're working on implementing an API call for installing and updating such configurations. The use-case we try to cover is when user updates an existing configuration, and wants to set the overwriting strategy. Typically we would include such option in the POST/PUT request body. But, since it might be difficult/error-prone for end users to manipulate a lengthy JSON, we want to avoid any changes to the generated JSON configuration.
Are there any best practices for such cases? We thought of passing an "overwrite" parameter in URL, which isn't quite RESTful, but is simple for end users.