Search found 6 matches

by viesturs.l
Thu Oct 13, 2016 4:40 pm
Forum: Web Services
Topic: REST API document/update returning "406 Not Acceptable"
Replies: 3
Views: 7628

Re: REST API document/update returning "406 Not Acceptable"

Looks like I found a solution: curl -i -u admin:admin -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"id":3309568,"folderId":3440640,"title":"newTitle","fileName":"newFilename"}' 'http://localhost:8080/services/rest/document/update' What I don't understand, is WHY I ha...
by viesturs.l
Thu Oct 13, 2016 3:38 pm
Forum: Web Services
Topic: REST API document/update returning "406 Not Acceptable"
Replies: 3
Views: 7628

Re: REST API document/update returning "406 Not Acceptable"

Well, when changing Accept types, I'm getting "500 Internal Server Error". Also, I think there should be 204 response, which returns no content. So I'm not sure what am I supposed to accept here. Anway, would be nice, if someone from support would give an example, on how to use this properly? Thanks!
by viesturs.l
Thu Oct 13, 2016 1:09 pm
Forum: Web Services
Topic: REST API document/update returning "406 Not Acceptable"
Replies: 3
Views: 7628

REST API document/update returning "406 Not Acceptable"

Hi, I'm using REST API to update file name and tags. I tested it using this curl request: curl -i -u myusername:mypassword -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' -d '{ "id": 3866653, "fileName": "New Filename" }' 'https://doc.mydmsurl.com/services/rest/document...
by viesturs.l
Fri Oct 07, 2016 9:38 am
Forum: Web Services
Topic: Find folderId by folderPath
Replies: 5
Views: 2457

Re: Find folderId by folderPath

Hi agaspa! Thank you for your reply! We could add the method findByPath to the REST endpoint of the folder and createInPath method to the endpoint of the documents That would be amazing! I think it would be useful to have those. Is there any approximate release date for 7.5.3 CE where these methods ...
by viesturs.l
Thu Oct 06, 2016 11:18 am
Forum: Web Services
Topic: Find folderId by folderPath
Replies: 5
Views: 2457

Re: Find folderId by folderPath

Hi, Thanks for your answer. That's what I plan to do if there's no better solution it's just that we're planning a folder structure like "/Default(root)/CategoryName/SubCategoryName/ItemNumber/" and upload all Item related files in that folder. In this case I'd have to make a lot of requests to fina...
by viesturs.l
Wed Oct 05, 2016 2:41 pm
Forum: Web Services
Topic: Find folderId by folderPath
Replies: 5
Views: 2457

Find folderId by folderPath

Hey, I'm using REST API to access LogicalDOC Community Edition 7.5.1. I need to be able to get folder ID by using folder path. So I would be able to upload documents from one system to DMS without my system knowing folder IDs. It looks like that this is possible using SOAP "folder/findByPath", but i...

Go to advanced search