JMA
Version 2.2.0
API version: 10.1.0
Added
UploadWorkDatacan file the new WorkData into a folder, tag it and mark it secret, all in the commit that creates it (issue #179). Before, each took a follow-up call (MoveToFolder,SetTags,MarkAsSecret), and a client failing between them left the WorkData in the root, untagged or not secret. The properties go in an optional form fieldUploadWorkDataParametersholding{"Folder": <folder URL>, "Tags": [...], "Secret": true}(every member optional), before or after the file. Sent before the file, an unknown or foreign folder or an invalid tag fails the upload before any content is stored; sent after it, the stored content is removed again. The upload still streams the file without buffering it. The SIRENUploadaction of the WorkData root lists the new field (classFileUploadActionWithParameter) and keeps the classFileUploadAction, so existing clients continue to work. Without the field an upload behaves as before.
Fixed
- Setting a WorkData’s tags with a null tag (
{"Tags":[null]}) failed with HTTP 500 instead of a validation error (400).