...
Code Block |
---|
|
PUT /api/v1/sync
Authorization: Bearer :token
Content-Type: application/json
{
"companies": [
{
"referenceId": "d",
"parentCompanies": [
{
"referenceId": "b",
"ownership": 25,
"delete": true <--- Set the `delete` property to `true`
}
]
}
]
} |
How to delete all previously created relationships?
Note |
---|
The cleanup property is going to be available in production by 2023-04-21. The old name is collectionStrategy and the value should be recreate |
In order to delete all previously created relationships, set the value of the cleanup
property to true
Code Block |
---|
PUT /api/v1/sync
Authorization: Bearer :token
Content-Type: application/json
{
"config": {
"cleanup": true
},
"companies": [
{
"referenceId": "d",
"parentCompanies": [
{
"referenceId": "b",
"ownership": 25
}
]
}
]
} |