Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21834

Add docs about setting multi-value properties for REST API

    Details

    • 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:
      Category 3
    • ACT Numbers:

      01012240

      Description

      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

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mtonelli Marco Tonelli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel