Article

Get Article Attachment By ID

GET
/knowledge/portalmgr/v4/articles/attachments/{attachmentID}

Overview

This API allows one article attachment identified by an attachment ID to be retrieved.

Authorization

accessToken
AuthorizationBearer <token>

JWT Bearer Token authentication for API access

In: header

Path Parameters

attachmentID*string

The ID of the attachment.An attachment ID is composed of a 2-4 letter prefix, followed by a dash and 4-15 digits.

Match^[a-zA-Z0-9]{2,4}-\d{4,15}$
Length7 <= length <= 20

Header Parameters

Accept-Language*string

The Language locale accepted by the client (used for locale specific fields in resource representation and in error responses).

Value in

  • "en-US"
  • "es-ES"
  • "fr-FR"
  • "it-IT"
  • "de-DE"
  • "nl-NL"
  • "pt-BR"
  • "pt-PT"
  • "da-DK"
  • "ru-RU"
  • "fr-CA"
  • "zh-CN"
  • "ja-JP"
  • "ko-KR"
  • "sv-SE"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/knowledge/portalmgr/v4/articles/attachments/PROD-1000" \  -H "Accept-Language: en-US"
{  "attachmentContent": [    {      "attachmentId": "PROD-1000",      "name": "eightbank.png",      "type": "INTERNAL",      "attachmentContentType": "image/png",      "streamingUrl": "https://developerv3api.egain.cloud/system/ws/v11/internal/stream/23a8f919-f9be-4d66-b717-69f51d6044c9",      "size": 45152,      "link": {        "rel": "self",        "href": "/knowledge/portalmgr/v3/portals/PROD-1000/articles/attachments/PROD-1000?%24attribute=all&%24lang=en-US"      }    }  ]}