Skip to content

Improved /task/import endpoint

Compare
Choose a tag to compare
@hayco hayco released this 30 Mar 17:56
· 441 commits to master since this release
ffffa8e

Status codes:

  • 200 OK when no version was created;
  • 201 CREATED and (absolute) uri of version in HTTP Location header when new version was created;

HTTP Link headers for Document, File, Version and Contents as well as json body in both 200 and 201 cases.

New query param asLatestVersion determines whether it is ok if the currently uploaded file already exists as any version or whether it has to be the latest version.

If any version is ok, no new version will be made if contents of current upload are already available as any version of this file.

if asLatestVersion is requested, new version will be made of this contents, unless these contents are already the current latest version.