Inserting a Siebel CRM Child Business Component
You can insert a Siebel CRM child Business Object by sending a HTTP PUT request to the resource's URI.
The following request inserts a Contact child record into an existing Account Business Component:
URL: http://ServerName:port/siebel/v1.0/data/Account/Account/88-431RF/Contact
HTTP Method: PUT
Content-Type: application/json
Authorization: Basic
- Request body:
{ "Employee Number":"12311", "Employer Name":"BXM", "First Name":"MAYA", "Bill To First Name":"MAYA", "Last Name":"ABRAHAM", "Bill To Last Name": "ABRAHAM", "Primary Organization Id":"0-R9NH", "Account Integration Id":"", "Job Title":"", "Person UId":"0CR-1MF5Z6", "Primary Organization":"Default Organization", "Personal Contact":"N", "Title":"" }
-
Response Body:
{ "items": { "Id": "88-3DS9V5", "Contact": { "Id": "88-3DS9XR", "Link": { "rel": "self", "href": "https://sca00mtv.us.oracle.com:16691/siebel/v1.0/data/Account/Account/88-3DS9V5/Contact/88-3DS9XR", "name": "Contact" } }, "Link": { "rel": "self", "href": "https://sca00mtv.us.oracle.com:16691/siebel/v1.0/data/Account/Account/88-3DS9V5", "name": "Account" } } }
Note: When inserting or updating data via HTTP POST/PUT the links that are returned in the response body are only self links. When querying data via GET you will get self, parent, and canonical links.