danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upload new revision content via API

kty0mka opened this issue · comments

Hi!

As I understand REST API Specification, it is possible to upload new file via API and it is possible to create new file revision.

Is it possible to create new revision with new file (attachment) content via REST API?
In other words, it would be useful to upload new attachment, but commit it not to a new file, but to a new revision of existing file.

Thanks!

Yes, it is. If the filename is identical, just a new revision of an existing document is created the same way as in GUI. (# 3. Upload a document in extra/api_client.sh)

Thanks! It was not obvious to me. Maybe it makes sense to add an explicit mention of this feature in the specification?

I've updated the wiki page accordingly.