
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 05:33 AM
Generally I want to upload new document with custom property. I have found solution how to do this. Firstly I need to create aspect with property and create rule that assigns aspect to new document. Next step is to set aspect property value to uploaded file. It's very simple when we do it with CMIS in JAVA but I wan't to use JAVA. I want to do it with one HTTP request.
How can I do it with REST?
Nowhere I can find tips how to do this.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 07:44 AM
See the reference for updateNode: Alfresco Content Services REST API Explorer . I'm assuming this'll work with custom properties, though I haven't actually tried it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 07:44 AM
See the reference for updateNode: Alfresco Content Services REST API Explorer . I'm assuming this'll work with custom properties, though I haven't actually tried it out.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 07:58 AM
Yes it works! Thank you.
I have found another solution with cmis that not require setting rules. It allows to add aspect and set value simultaneously.




- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 08:19 AM
Glad to hear it works!
Free tip: when working with CMIS, it's usually more convenient to use a Java CMIS client library and let that take care of all the XML messaging for you.
