-
Type:
Documentation
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 6.2
-
Fix Version/s: 6.2.N
-
Component/s: ACS REST API
-
Labels:None
-
Environment:Windows, Linux
-
Bug Priority:
-
ACT Numbers:
01012240
Description:
We have a request about documenting the creation of nodes with multi-valued fields using the REST API
ACS 6.2 supports setting multi-valued properties on node creation and update, which should be in the documentation.
Here's a curl example of how to do it on creation in 6.2:
curl --location --request POST 'http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{{nodeId}}/children' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --form 'name=Node with multivalued field ' \ --form 'nodeType=cm:content' \ --form 'cm:subject=adds the aspect automatically' \ --form 'test:multi=valueA' \ --form 'test:multi=valueB' \ --form 'filedata=@/data/Demo/Sample Files/luna_1.jpg'
Please see this link for the details.
https://hub.alfresco.com/t5/alfresco-content-services-forum/create-a-document-with-multi-valued-property-using-rest-api/m-p/300374#M20277