In API v1, items returned in the API would include the id of the collection it was a part of (the property was _cid
). This was useful, as an example, for knowing why “kind” of CMS item was updated when handling the “item updated” webhook event. In API v2, AFAICT, there is no way to determine what the collection an item is a member of.
Actually, it looks like the documentation is wrong. The payload does actually include siteId
, workspaceId
, and collectionId
. NOTE: This is only the case for the webhook payload.
Thanks @jschen for raising this! We’ll take a look here on fixing this up. If you’d like to track, feel free to raise an issue in our public OpenAPI spec repo.
1 Like