Inserting a Hierarchy

Use this API to insert a complete parent, child hierarchy in a single call.

In this example, both Account and child contacts are inserted in a single API call.

URI: https://host:port/siebel/v1.0/data/Account/Account

HTTP Method : POST

Content-Type: application/json

Authorization: Basic

Request Body:

{
"Name": "John",
"Primary Organization": "ABC",
"Location": "Albany",
"Primary Organization Id": "1SIA-7SY3",
      "Contact":
      {
      "First Name": "Michael",
      "Last Name": "Stoke",
      "Primary Organization": "ABC",
      "Personal Contact": "5",
      "Person UId": "98765"
      }
}

Response Body:

{
    "items": {
        "Name": "John",
        "Id": "88-34R1YK",
        "Location": "Albany",
        "Primary Organization Id": "1SIA-7SY3",
        "Primary Organization": "ABC",
        "Contact": {
            "Id": "88-34R1YN",
            "Link": {
                "rel": "self",
                "href": "https://host:port/siebel/v1.0/data/Account/Account/88-34R1YK/Contact/88-34R1YN",
                "name": "Contact"
            }
        },
        "Link": {
            "rel": "self",
            "href": "https://host:port/siebel/v1.0/data/Account/Account/88-34R1YK",
            "name": "Account"
        }
    }
}