REST API - deleteByRefx

The REST API - deleteByRefx operation deletes multiple case data objects by case reference. The case references are listed in the body of the request so there is no limit to the number of them.

Request

Format
DELETE <baseurl>/globaldata/deletebyrefx
Body caseData (required). Contains the parameters in the CaseReferenceArrayType element (from the BusinessDataServices schema).

This consists of the case references of the case data that you want to delete. Whenever a case object is created, a unique case reference is also created. Providing the case reference, provides access to the case data object. You can obtain case references using findAllCases .

Response

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

Example

Request
DELETE <baseurl>/globaldata/deletebyrefx
Body
<caseData xmlns="">
<caseReference xmlns="">BDS-2-com.example.gddemo.Customer-63-1</caseReference>
<caseReference xmlns="">BDS-2-com.example.gddemo.Customer-75-0</caseReference>
</caseData>
Response
{
       "xml-fragment": ""
}