Hello,
I am hoping that someone from the community may have encountered this issue, and may have some insight to help me achieve what i need to (or provide alternative ideas to question my thinking).
I wanted to provide as much information as possible, so thanks in advance for reading to see if you could possibly help out!
Reason for our structure:
- Our customers can have unlimited access to relevant packages for their employees, based on factors external to the Docebo platform (D365 sales processes).
- These packages are not 1 per customer, they
- They are not enrolled in the content, instead the options are displayed visually within pages.
- Branches separate our customers, with employees created via SSO to land in the correct branch.
- Groups with automated rules (based on branches); ensure each member has the correct content access.
- These packages are not 1 per customer, they can have a variety of packages assigned (we manually add and remove customers to automated groups).
Current API Issue
Name: Update an Audience
Endpoint: /audiences/v1/audience/{uuid}
Use case: To update an automated group, with an updated list of branch_id’s to include within the automated rules.
Initial Test: The body sample included in the documentation, seems to imply that we would be able to send the list of branches within the payload. When tested, it returns a successful 200 code – however it seems to require a more complex nested JSON structure (to match the “sets” and “conditions” used in automated groups). Despite seeming to add the branches to the rules, I received an error when loading the group within the platform GUI.
Amended test: As I thought this may be due to the lack of structure (i.e. having 30 branches within a condition which cannot exceed 20), I then copied the complex JSON structure within an existing group (used “get an audience” to retrieve the groups existing rules). When I sent this back to the platform to update the audience, I similarly received a successful 200 code – however despite it appearing to show the correctly formatted structure on the group landing page (my test was 2 sets, including 2 conditions each, with 10 branches in each) – this seemed to still provide the same error whenever I try to navigate or validate within the Docebo platform.
Error example: You can see that it appears on the landing (left side) that it worked correctly. But you can see when opening the rules, that it cannot retrieve or show these branches within the GUI. The bottom of the page demonstrates this server error whenever you try to perform any action on the page.

Thanks,
Andrew
