Hello,
The documentation for Documents POST UploadSftp states that DateCreate and Description are optional attributes:
Description: (Added in version 24.2.32) Optional. Default empty string.
DateCreated: (Added in version 21.4) Optional. Defaults to today's date.
Using OD 25.3.60, the posted DateCreated is being overwritten by the current date, and the posted Description is being overwritten by the filename. It appears nether one of these behave has they are description in the documentation.
POST /documents/UploadSftp
{
"PatNum": 1,
"DateCreated": "2026-03-15 14:30:00",
"Description": "Test Description",
"DocCategory": 131,
"ImgType": "Document",
"ToothNumbers": "1-5,8",
"SftpAddress": "127.0.0.1/Users/ftpuser/Temp/testimage.jpg",
"SftpUsername": "ftpuser",
"SftpPassword": "password"
}
Response:
{
"DocNum": 203337,
"filePath": "\\\\TVD1\\OpenDentImages\\G\\GravesRandall1\\GravesRandall203337.jpg",
"Description": "testimage.jpg",
"ToothNumbers": "1,2,3,4,5,8",
"Note": "",
"DateCreated": "2026-03-28 19:59:53",
"DateTStamp": "2026-03-28 19:59:54",
"DocCategory": 131,
"docCategory": "Insurance",
"serverDateTime": "2026-03-28 19:59:53"
}
Documents UploadSftp - DateCreate and Description not functioning as described
Re: Documents UploadSftp - DateCreate and Description not functioning as described
Hello rsgraves,rsgraves wrote: Sat Mar 28, 2026 5:24 pm Hello,
The documentation for Documents POST UploadSftp states that DateCreate and Description are optional attributes:
Description: (Added in version 24.2.32) Optional. Default empty string.
DateCreated: (Added in version 21.4) Optional. Defaults to today's date.
Using OD 25.3.60, the posted DateCreated is being overwritten by the current date, and the posted Description is being overwritten by the filename. It appears nether one of these behave has they are description in the documentation.
POST /documents/UploadSftp
{
"PatNum": 1,
"DateCreated": "2026-03-15 14:30:00",
"Description": "Test Description",
"DocCategory": 131,
"ImgType": "Document",
"ToothNumbers": "1-5,8",
"SftpAddress": "127.0.0.1/Users/ftpuser/Temp/testimage.jpg",
"SftpUsername": "ftpuser",
"SftpPassword": "password"
}
Response:
{
"DocNum": 203337,
"filePath": "\\\\TVD1\\OpenDentImages\\G\\GravesRandall1\\GravesRandall203337.jpg",
"Description": "testimage.jpg",
"ToothNumbers": "1,2,3,4,5,8",
"Note": "",
"DateCreated": "2026-03-28 19:59:53",
"DateTStamp": "2026-03-28 19:59:54",
"DocCategory": 131,
"docCategory": "Insurance",
"serverDateTime": "2026-03-28 19:59:53"
}
Thank you for bringing this to our attention. This issue has been addressed and the fix has been implemented in version 25.4.45.