Skip Navigation
Expand
Constructing the URL of an article attachment from the Knowledge Advanced REST API
Answer ID 11396   |   Last Review Date 02/28/2020

What is the URL to access a file attachment from an article retrieved via Content REST?

Environment:

Integrations using the Knowledge Advanced REST API v1

Resolution:

From the content object response, parse two values:

  1. The resourcePath.
  2. The filename(s) from the xml, which your application should URL encode.

Concatenate the resourcePath and desired filename together. If the attachment has a user group association, a kmauthtoken must be sent in the header with the GET request for the attachment.

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.