The Make a Suggestion API allows users to create an Article Suggestion from within a knowledge portal.
- Enable the setting "Manage a Suggestion" for the portal specified in the URL.
- If the user is a Customer, enable the setting "Allow Customer Access" for the portal.
- If you want to add an attachment to a Suggestion, first call the Generate Signed URL to Upload API to add an attachment using the provided returned altID in attachment request.
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.
The Article that the Suggestion was created for.
- oAuthUser
- oAuthOnBehalfOfUser
- oAuthCustomer
- oAuthOnBehalfOfCustomer
- oAuthAnonymousCustomer
- Mandatory Attributes Only
- Feedback Suggestion
- All Attributes
curl -i -X POST \
https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/suggestions \
-H 'Accept-Language: en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-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' \
-d '{
"name": "Proposed Store Phone Number",
"content": "You should update your website with the new phone number.",
"language": {
"code": "en-US"
}
}'