- Portal Manager
- V4
The Get Suggestion Attachment by ID API allows authenticated users to get the details of an attachment that belongs to their own Suggestion. It also allows the download of attachment content.
- Enable the setting "My Suggestions" for the portal specified in the URL
- If the user is a customer, enable the setting "Allow Customer Access" for the portal.
- The Suggestion specified in the URL must belong to the user.
The attributes of an attachment to be returned, along with the default attachment details.
| Attribute | Description |
|---|---|
| id | Unique identifier for the attachment |
| fileName | Name of the file |
| contentType | Content type of the file |
| size | Size of the file in bytes |
| link | Link to the attachment |
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.
- oAuthUser
- oAuthOnBehalfOfUser
- oAuthCustomer
- oAuthOnBehalfOfCustomer
curl -i -X GET \
'https://api.egain.cloud/knowledge/portalmgr/v4/portals/PROD-1000/suggestions/attachments/PROD-1000?attachmentAdditionalAttributes=contentUrl' \
-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
The ID of the Attachment.
The name of the Attachment file.
- Summary Attributes
- All Attributes
{ "link": { "rel": "self", "href": "/knowledge/portalmgr/v4/portals/PROD-1000/suggestions/attachments/PROD-1001" }, "fileName": "eightbank.png", "size": 45152, "id": "PROD-1001" }