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