cancel
Showing results for 
Search instead for 
Did you mean: 

Update Metadata

tremalnaik
Champ in-the-making
Champ in-the-making
Hi,

I'm triying to edit the metadata from some object in my Alfresco.

I'm using the post

POST /alfresco/service/api/metadata/node/{store_type}/{store_id}/{id}

And the JSON element I want to edit is the next:


{"@xmlns":"http://www.w3.org/2005/Atom",

"cmisra:object":{"cmis:properties":{"@xmlns:cmis":"http://docs.oasis-open.org/ns/cmis/core/200908/",
                                                      …
                                                      "cmis:propertyString":[…
                                                                                        {"@propertyDefinitionId":"ac:place",
                                                                               "@displayName":"Place",
                                                                               "@queryName":"ac:place"},
                                                                                      …
}

The JSON message that I must send, how should it be?

This chan hasn't any result:


{"cmis:properties":{"cmis:propertyString":{"@propertyDefinitionId":"ac:place":"Room"}}";
2 REPLIES 2

tremalnaik
Champ in-the-making
Champ in-the-making
I've thought another possible solution: Use the Write Content (setContent) Web Script like this

PUT /alfresco/service/cmis/s/{store}/i/{id}/content{property}?overwriteFlag={overwriteFlag?}

Where property is the metadata's name which I want update. But it always modify the content instead the field.

tremalnaik
Champ in-the-making
Champ in-the-making