Page 1 of 1

API Request -- Documents Import?

Posted: Tue Jan 28, 2025 12:49 pm
by laborspy
If I am overlooking something please forgive me and redirect. Is there a chance we can get an import/refresh function of the Documents in the API? There are so many ways of placing something int the A-to-Z folder but nothing currently in place to trigger Open Dental to index them until someone clicks on the Images module. Something like "Index": "True" would be a welcomed improvement .. please?

POST /documents/SetByUrl

{
"PatNum": 101,
"url": "https://www.somesite.com/myimage.jpg",
"DocCategory": 47,
"Description": "Extraoral",
"ImgType": "Photo",
"ToothNumbers": "1,2",
"Index": "true"
}

Re: API Request -- Documents Import?

Posted: Tue Jan 28, 2025 3:09 pm
by justine
laborspy wrote:
Tue Jan 28, 2025 12:49 pm
If I am overlooking something please forgive me and redirect. Is there a chance we can get an import/refresh function of the Documents in the API? There are so many ways of placing something int the A-to-Z folder but nothing currently in place to trigger Open Dental to index them until someone clicks on the Images module. Something like "Index": "True" would be a welcomed improvement .. please?

POST /documents/SetByUrl

{
"PatNum": 101,
"url": "https://www.somesite.com/myimage.jpg",
"DocCategory": 47,
"Description": "Extraoral",
"ImgType": "Photo",
"ToothNumbers": "1,2",
"Index": "true"
}
Hello laborspy,

It sounds like POST documents UploadSftp would be a better fit for your application.

Thanks!

Re: API Request -- Documents Import?

Posted: Wed Jan 29, 2025 6:31 am
by laborspy
I will migrate coding to that and setup a SFTP server. Ideally just writing the file into the A-to-Z folder and somehow requesting Open Dental to index it would be amazing as it is less overhead.