We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I retrieve attachments from an Answer?

Accepted answer
23
Views
2
Comments
edited Sep 11, 2021 9:57PM in Integrations and APIs 2 comments

Content

Using the REST API for OSvC Knowledge Advanced, I am able to retrieve the answer content without issue (.../km/api/latest/content/answers/[Answer ID]). However, I can't for the life of me figure out how to retrieve links to / or the content of files attached to the answer. The only information I am able to get is the actual filenames and filesizes, which is great, but that's not what I need. I need a link to the actual file (ie. .../ci/okcsFattach/get/[AnswerID]_[Index]). I assumed (incorrectly) that the index order in which they were returned in the XML CDATA was the appropriate _[Index] value in the filename,

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!