Example of Related Record Modify

Consider the following example: modifying a record with relationship to customer type "Non IT" in the repository named "Company".

Example - Request

{
  "record": {
    "repositoryName": "Company",
    "productId": "REC1",
    "productIdExt": "REC1",
    "attributes": [
      {
        "name": "Name",
        "value": "TIBCO"
      },
      {
        "name": "Address",
        "value": "NL"
      },
      {
        "name": "Street",
        "multivalues": [
          "11th St",
          "Rockford"
        ],
        "multivalue": true
      },
      {
        "name": "Website",
        "value": "https://www.google.co.in/"
      },
      {
        "name": "Rating",
        "value": "10.10"
      },
      {
        "name": "CompanySource",
        "value": "IT SOURCE"
      },
      {
        "name": "CompanyRating",
        "value": "9"
      }
    ],
    "relationships": {
      "companycustomer": [
        {
          "relationshipAttributes": [
            {
              "name": "RCustomerType",
              "value": "NONIT"
            },
            {
              "name": "RCompanyType",
              "value": "IT PVT"
            }
          ],
          "targetRecord": {
            "repositoryName": "Customer",
            "productId": "REC2",
            "productIdExt": "REC2",
            "attributes": [
              {
                "name": "CustName",
                "value": "John reichard"
              },
              {
                "name": "CustAddress",
                "value": "UK"
              },
              {
                "name": "DOB",
                "value": "03/10/1986"
              },
              {
                "name": "Salary",
                "value": "45000"
              },
              {
                "name": "Gender",
                "value": "M"
              },
              {
                "name": "CustRating",
                "value": "7"
              }
            ],
            "relationships": {
              
            },
            "deleted": false
          }
        }
      ]
    },
    "deleted": false
  }
}

Example - Response

The response returns all the records matching the search criteria.

{
   "responseMessages": [   {
      "code": "SVC-11025",
      "message": "Service 'VALIDATE_PROCESS' executed successfully.",
      "type": "Info"
   }],
   "records": [],
   "success": true
}