cancel
Showing results for 
Search instead for 
Did you mean: 

How to set custom attribute to file when upload to nuxeo document?

Mustafa_Mustafa
Champ in-the-making
Champ in-the-making

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

Mustafa_Mustafa
Champ in-the-making
Champ in-the-making

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" }] } }

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.