janhoy commented on code in PR #4942:
URL: https://github.com/apache/solr/pull/4942#discussion_r4099407584


##########
solr/solr-ref-guide/modules/indexing-guide/pages/schema-api.adoc:
##########
@@ -523,11 +524,13 @@ V2 API::
 ====
 [source,bash]
 ----
-curl -X POST -H 'Content-type:application/json' --data-binary '{
-  "add-copy-field":{
-     "source":"shelf",
-     "dest":[ "location", "catchall" ]}
-}' http://localhost:8983/api/collections/techproducts/schema
+curl -X POST -H 'Content-type:application/json' --data-binary '[
+  {
+    "operationType":"add-copy-field",
+    "source":"shelf",
+    "destinations":[ "location", "catchall" ]

Review Comment:
   See #4943 for code work on the same. Need to decide between "destination" 
and "dest". 
   Also, if the destination fields require different `maxChars` settings, then 
you'll need to POST several requests, as the body JSON format here can only 
specify a global `maxChars` setting.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to