...
Code Block |
---|
PUT /api/v1/sync Authorization: Bearer :token Content-Type: application/json { "config": { "companyIdFields": ["referenceId"], "collectionStrategy": "incremental" }, "companies": [ { "referenceId": "d", "parentCompanies": [ { "referenceId": "b", "ownership": 25 } ] } ] } |
How to delete a relationship incrementally?
Use the delete
property
Code Block |
---|
PUT /api/v1/sync Authorization: Bearer :token Content-Type: application/json { "config": { "companyIdFields": ["referenceId"], "collectionStrategy": "incremental" }, "companies": [ { "referenceId": "d", "parentCompanies": [ { "referenceId": "b", "ownership": 25, "delete": true <--- Set the `delete` prpperty to `true` } ] } ] } |