This is an automated email from the ASF dual-hosted git repository. houston pushed a commit to branch branch_8_7 in repository https://gitbox.apache.org/repos/asf/lucene-solr.git The following commit(s) were added to refs/heads/branch_8_7 by this push: new 150b10e Add example for ConfigSet create with properties map. (#2005) 150b10e is described below commit 150b10eea7a880479f08ce592db3f3a3049ad7e9 Author: Houston Putman AuthorDate: Thu Oct 22 11:20:33 2020 -0400 Add example for ConfigSet create with properties map. (#2005) --- solr/solr-ref-guide/src/configsets-api.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/solr/solr-ref-guide/src/configsets-api.adoc b/solr/solr-ref-guide/src/configsets-api.adoc index 06a9337..9fc328a 100644 --- a/solr/solr-ref-guide/src/configsets-api.adoc +++ b/solr/solr-ref-guide/src/configsets-api.adoc @@ -182,6 +182,20 @@ curl -X POST -H 'Content-type: application/json' -d '{ "configSetProp.immutable": "false"}}' http://localhost:8983/api/cluster/configs?omitHeader=true ---- + +With the v2 API, ConfigSet properties can also be provided via the `properties` map: + +[source,bash] +---- +curl -X POST -H 'Content-type: application/json' -d '{ + "create":{ + "name": "myConfigSet", + "baseConfigSet": "predefinedTemplate", + "properties": { + "immutable": "false" + }}}' + http://localhost:8983/api/cluster/configs?omitHeader=true +---- ==== --