12-06-2018 06:42 AM - edited 03-01-2019 03:37 AM
Hey everyone,
I am currently working on a project to make our lives easier for maintaining documents and I am trying to pull down the contents of all of the XML files on UCCX and displaying them in a web interface.
What I am doing is getting a list of all of out XML files with the following api call:
GET
https://{server-Name-here}/adminapi/document/en_US/
This works perfectly and I am able to retrieve the list I need.
Then I take that list and want to pull the actual XML contents down. When I try to use the API all I get is file information and while I do use this info its not what I'm trying to do:
GET
https://{server-Name-here}/adminapi/document/en_US/some-xml-document.xml
Files>Document>Path>Filename..ect ect
If I make the call to the actual web app I am able to pull down the xml information using this. This is the same as clicking on the actual document within the webapp itself.
GET
https://{server-Name-here}/appadmin/temp/some-xml-document.xml
The problem with this last get is if we haven't viewed the document within the webapp the temp file is never created and this fails.
Does anyone know if there is an API call to retrieve the actual contents of the Document files without having them to reside in the temp area on the webapp?
Thanks!
07-03-2019 11:03 AM
I realize this is not exactly in line with the request but do you have the ability to write back a new file and what commands would that be?
09-17-2019 01:51 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide