akashm
3 years agoMentor
How to set predefined-only while creating GroupHub
So, I am in an interesting scenario: I want to create a Group Hub --> Easy enough to create using the REST API Endpoints I want to have Forum + Calendar + TKB created within the Group Hub --> Same...
- 3 years ago
I did a little bit of testing, and I was able to set this setting using API v1 on an individual Idea Exchange within the Group Hub:
GET /restapi/vc/boards/id/xxx/settings/name/label.allowed_labels * Returned "freeform-only" POST /restapi/vc/boards/id/xxx/settings/name/label.allowed_labels/set * value=predefined-only GET /restapi/vc/boards/id/xxx/settings/name/label.allowed_labels * Returned "predefined-only"
After doing this, I did see the labels being enforced in the "New Idea" flow. I was not able to work with the group hub itself in API v1, and I did not get a chance to try API v2, but I assume that it would work in the same way.
Let me know how that goes!