datafoodconsortium / standard

This is the DFC standard on GitBook.
https://datafoodconsortium.gitbook.io/dfc-standard-documentation/
GNU Affero General Public License v3.0
5 stars 2 forks source link

How to update an enterprise to remove the association to another enterprise or person? #5

Closed lecoqlibre closed 10 months ago

lecoqlibre commented 10 months ago

<@U01EGSNPQH2> If I want to update an enterprise to remove the association to another enterprise or person, do I need to set the whole list of associations except the one I want to delete? Or is there a way to delete an association without referring to the unchanged associations?

As example:


"@id": "...", "@type": "Enterprise",
"affiliatedBy": ["p1", "p2],
}```
If I want to remove p1, is there any better way than a POST request without p1?
```{
"@id": "...", "@type": "Enterprise",
"affiliatedBy": ["p2],
}```

[Slack Message](https://datafoodconsortium.slack.com/archives/C024VS581SA/p1700795382801079)