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 3 forks source link

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

Closed lecoqlibre closed 1 year ago

lecoqlibre commented 1 year 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)