cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API call dont update or document completely

zod_
Champ on-the-rise
Champ on-the-rise

I am using rest call to create document. The below are my parameters . The call create a document with name and title . But the other fields like created date or published date or state are not updated . WHY?

{ "entity-type": "document", "name":"kk", "type": "File", "dc:description":"THis may work", "properties" : { "dc:title":"lop", "dc:issued":"2013-05-05T16:13:39.35Z", "dc:created":"2013-03-05T16:13:39.35Z", "dc:modified":"2013-03-05T16:13:39.35Z", "dc:publisher":"Administrator" }, "state" : "published" }

5 REPLIES 5

Damien_Metzler
Star Contributor
Star Contributor

Hello,

dc:created and dc:modified are updated automatically by the DublinCore Service server side. The REST API is only able to update the "properties" map.

To update the "state", you have to make your document follow a transition.

i am actually doing an import process, create date and update date are past dates. i have to import a document in publish state or any state. can i do this by call rest api to create document. can you please explain "document follow a transition" ? any links will be helpful

Actually you can change the creation date after its creation with a REST update call.

Perhaps that for an import process, the rest API is not a good choice if you want to have fine grained control upon those properties. You should use nuxeo-platform-importer that is more suited for your needs.

i tried http

Getting started

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.