Upserting Multiple Siebel CRM Business Components
You can insert or update multiple Business Component records by sending a single HTTP PUT request to the resource's URI. The maximum number of records you can insert or update is 100. You use the ID field as the unique key to identify the record. This field, and the other field values to be updated, are mandatory. If the record with this ID field exists in the database, then the fields are updated. Otherwise, the record is inserted if all the user key fields are present in the request body.
The following request updates the existing Account record on the Siebel CRM Server:
URL: https://ServerName:port/siebel/v1.0/data/Account/Account
HTTP Method: PUT
Content-Type: application/json
Authorization: Basic
- Request body:
[ { "Name": "AccountExample1", "Id": "88-1V80SZ", "Location": "HQ-Distribution", "Primary Organization Id": "1-1DG", "Primary Organization": "Millennium Institutional Finance Services IF ENU", "Description": "Updated AccountData 1" }, { "Name": "AccountExample2", "Id": "88-1V80T2", "Location": "HQ-Distribution", "Primary Organization Id": "1-1DG", "Primary Organization": "Millennium Institutional Finance Services IF ENU", "Description": "Updated AccountData 2" } ]
- Response body with response code: 200 OK:
[ { "Name": "AccountExample1", "Id": "88-1V80SZ", "Location": "HQ-Distribution", "Primary Organization Id": "1-1DG", "Primary Organization": "Millennium Institutional Finance Services IF ENU", "Description": "Updated AccountData 1", "Link": { "rel": "self", "href": "https://HostName:port/siebel/v1.0/data/Account/Account/88-1V80SZ", "name": "Account" } }, { "Name": "AccountExample2", "Id": "88-1V80T2", "Location": "HQ-Distribution", "Primary Organization Id": "1-1DG", "Primary Organization": "Millennium Institutional Finance Services IF ENU", "Description": "Updated AccountData 2", "Link": { "rel": "self", "href": "https://HostName:port/siebel/v1.0/data/Account/Account/88-1V80T2", "name": "Account" } } ]