- Portal Manager
- V4
- Get Article Version List
- The Get Article Version List API retrieves the version history of an Article in a portal, so that a user can see how the Article has changed over time.
- A published Article always has at least one published version available.
- A maximum of the 50 most recent published versions are available, returned with the newest version first.
- Only published versions are returned.
- Draft, in-review, and other unpublished versions are never included.
- Each version lists the editions available to the user under
availableEditions. A version may have zero or more editions. - The versions that are returned honor the logged-in user's profile and personalized view of the Article, consistent with how Article content is personalized across the portal.
- A user sees only the versions that their assigned user profile grants access to.
- The optional
publishViewIdquery parameter returns the editions for a specific publish view. If it is not provided, the publish view from the logged-in user's assigned user profile is used.
- The content of a version is retrieved separately using the Get Article Versions By IDs API.
The ID of the publish view for which editions are returned. If not provided, the publish view from the logged-in user's assigned user profile is used.
A publish view ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.
The unique numeric identifier for a tenant, used in self-service functionality as well as third-party integrations.
Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.
The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.
A unique interaction identifier from other CRM applications.
Note: The x-ext-integration-id and x-ext-interaction-id headers must always be provided together and cannot be supplied independently.
The x-egain-activity-id may be provided on its own, or it may be provided along with both x-ext-integration-id and x-ext-interaction-id.
- Production Serverhttps://api.egain.cloud/knowledge/portalmgr/v4/portals/{portalID}/articles/{articleID}/versions
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/articles/PROD-2996/versions?publishViewId=PROD-3203&%24lang=en-US&%24pagenum=1&%24pagesize=5' \
-H 'Accept-Language: en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-egain-activity-id: 59237' \
-H 'x-ext-integration-id: 3155180e-0c13-43e9-9c38-e9045bcbf176' \
-H 'x-ext-interaction-id: 3155180e-0c13-43e9-9c38-e9045bcbf176'Success
Published version details. A maximum of the 50 most recent versions are available, returned with the newest version first. Each version exposes the editions available to the user; a version may have zero or more editions.
{ "versions": [ { … }, { … }, { … } ], "paginationInfo": { "count": 3, "pagenum": 1, "pagesize": 5 } }