How to set custom attribute to file when upload to nuxeo document?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2020 01:44 AM
I want to add some custom attributes to file when upload to nuxeo document using below endpoint and payload:
http://localhost:8080/nuxeo/api/v1/id/folder_id
{ "entity-type": "document", "type": "File", "name":"test", "properties" : { "file:content": { "upload-batch":"batchId", "upload-fileId":"0" } } }
How can I add attribute to file using nuxeo rest API?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2020 02:32 AM
I fix it using below payload { "entity-type": "document", "type": "File", "name":"name", "properties" : { "file:content": { "upload-batch":"batchId", "upload-fileId":"0" }, "nxtag:tags":[{ "label": "tag content" }] } }