Knowledge APIs
/- Portal Manager
- V4
- Get All Portals Accessible To User
Get All Portals
Get Portal Details By ID
Get Tag Categories for Interest for a Portal
Get All Portals Accessibl...
The Get All Portals Accessible to User API allows a user to fetch all portals accessible to user across all department.
- If no access tags are specified for a portal, then any user can access the portal.
- If access tags are specified for a portal, users with a user profile that allows access have access to the portal. For users with multiple user profiles, the user profile that allows access does not need to be the active user profile.
- All the global users(partition) cannot be assigned user profiles; their access is limited to portals without access restrictions.
- The only articles returned are associated to an Article type when the parameter, “Include in browse on portals” is set to "Yes".
- When the "shortUrlTemplate" query parameter is provided, the API filters accessible portals according to the specified language and template name. Portal Short URL specific to to the "shortUrlTemplate" query parameter value is returned in the response.
- When there is no short URL available for a specific language, the API returns a portal object with an empty "shortURL" field.
Security
oAuthUser(Required scopes:
https://api.egain.cloud/auth/kno...
) or oAuthOnBehalfOfUser(Required scopes: https://api.egain.cloud/auth/kno...
)GET
- oAuthUser
- oAuthOnBehalfOfUser
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/myportals?%24lang=en-US&department=service&filterText=master&shortUrlTemplate=silver&%24sort=id&%24order=asc&%24pagenum=1&%24pagesize=25' \
-H 'Accept-Language: en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
- All Portal with only default Short URL
- All Portal with default/non-default Short URL
By default, shortURL only contains single object
{ "portal": [ { … } ], "paginationInfo": { "count": 1, "pagenum": 1, "pagesize": 25 } }