saraizad | Posts: 17 API for getting the list of Roles Monday, May 20, 2019 at 10:26am 0 votes Hi Team, Is there an API that we can use to retrieve the list of roleIds already on the package? thanks, Sara May 20 Created January 21 Last Updated 5 years ago Last Reply 1 Replies 66 Views 2 Users 0 Likes 0 Links Duo_Liang | Posts: 3776 Reply to: API for getting the list of Roles Monday, May 20, 2019 at 12:35pm 0 votes Hey Sara, Unfortunately, there was not a direct API to retrieve existing role ids yet. Instead, you can use below API: GET /api/packages/{packageId}/roles Example response: { "results":[ {role_node1}, {role_node2} ], "count":2 } By looping through the results array and parsing the role node for Id attribute, you'll find all available role ids. Hope this could help! Duo Log in or register to post comments
Duo_Liang | Posts: 3776 Reply to: API for getting the list of Roles Monday, May 20, 2019 at 12:35pm 0 votes Hey Sara, Unfortunately, there was not a direct API to retrieve existing role ids yet. Instead, you can use below API: GET /api/packages/{packageId}/roles Example response: { "results":[ {role_node1}, {role_node2} ], "count":2 } By looping through the results array and parsing the role node for Id attribute, you'll find all available role ids. Hope this could help! Duo Log in or register to post comments
Reply to: API for getting the list of Roles
Monday, May 20, 2019 at 12:35pm