REST API - update - Array Operation

The table summarizes the REST API - update - Array Operation.

Request

Request
PUT <baseurl>/globaldata/update
Body caseData (required). Contains the parameters in the CaseDataArrayType element (from the BusinessDataServices schema).

This contains the case objects to be updated. Your request must be constructed to match the structure of the case data defined in your business object model. There can be multiple case data in the request. See Obtaining Information From TIBCO Business Studio .

Response

JSON Returns a JSON representation of the contents of a CaseReferenceArrayType element.
XML Returns the contents of a CaseReferenceArrayType element (from the BusinessDataServices schema)

Example

Request
PUT <baseurl>/globaldata/update
Body
<xml-fragment>
   <caseData>
      <caseReference>BDS-1-com.example.hastings.Order-32-1</caseReference>

      <casePayload>
         <![CDATA[
         <hastings:OrderElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hastings="http://example.com/hastings" xsi:type="hastings:Order">
         <orderNum>58876</orderNum>
         <acctNum>16665-009</acctNum>
         <orderDate>2015-02-04Z</orderDate>
         <lineItems xsi:type="hastings:LineItem">
         <partNum>CAM7765</partNum>
         <quantity>1</quantity>
         <price>599.0</price>
         <vendor xsi:type="hastings:Vendor">
         <name>Carrie's Cams</name>
         <address xsi:type="hastings:Address">
         <street>87765 Main St.</street>
         <city>Spokane</city>
         <state>WA</state>
         <zip>99776</zip>
         </address>
         <contactNames>Carrie Miller</contactNames>
         </vendor>
         </lineItems>
         </hastings:OrderElement>
         ]]>
      </casePayload>
   </caseData>

   <caseData>
      <caseReference>BDS-1-com.example.hastings.Order-40-0</caseReference>

      <casePayload>
         <![CDATA[
         <hastings:OrderElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hastings="http://example.com/hastings" xsi:type="hastings:Order">
         <orderNum>88749</orderNum>
         <acctNum>2882-009</acctNum>
         <orderDate>2015-02-04Z</orderDate>
         <lineItems xsi:type="hastings:LineItem">
         <partNum>CAM248</partNum>
         <quantity>2</quantity>
         <price>499.0</price>
         <vendor xsi:type="hastings:Vendor">
         <name>Carrie's Cams</name>
         <address xsi:type="hastings:Address">
         <street>87765 Main St.</street>
         <city>Spokane</city>
         <state>WA</state>
         <zip>99776</zip>
         </address>
         <contactNames>Carrie Miller</contactNames>
         </vendor>
         </lineItems>
         </hastings:OrderElement>
         ]]>
      </casePayload>
   </caseData>
</xml-fragment>
Response
<?xml version="1.0" encoding="UTF-8"?>
<xml-fragment>
   <caseReference>BDS-1-com.example.hastings.Order-32-2</caseReference>
   <caseReference>BDS-1-com.example.hastings.Order-40-1</caseReference>
</xml-fragment>