Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is possible to incrementally create the relations if you are using static IDs (see Upload companies using static IDs ) and using the incremental collection strategy (Default value is recreate)

Note

Value for companyIdFields will be ["referenceId"] by default, going forward. Avallone will reach out to you if you are affected by this change.

Code Block
languagejson
PUT /api/v1/sync
Authorization: Bearer :token
Content-Type: application/json
{
  "config": {
    "companyIdFields": ["referenceId"],
    "collectionStrategy": "incremental"
  },
  "companies": [
    {
      "referenceId": "d",
      "parentCompanies": [
        {
          "referenceId": "b",
          "ownership": 25
        }
      ]
    }
  ]
}

...