Hey,
we are currently implementing a webhook and struggling with one specific event type.
The documentation at https://confluence.atlassian.com/doc/managing-webhooks-1021225606.html states, that a label_added event is fired when an existing label is applied to a page, blog post, or space.
We expected this event to include the space-key or atleast the space-id. Unfortunately, when we label a space we get an event that is completely undistinguishable from an event, where a page is labeled. We checked the id in the labeled/id property of the event, but this id is neither the id of the labeled space nor the id of any page in that space.
Are there any insights as to which id is included in this case?
Best regards
Community moderators have prevented the ability to post new answers.
Hi @Milo S
Welcome to the Atlassian community.
My best guess is that Confluence stores space-level labels against a separate content entity tied to the space. I would verify this rather than make further guesses. Take the ID from that payload and call:
GET /rest/api/content/{id}?expand=space,container
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.