Fórum

JSON Web Service for document tag category update

Sourabh Lonikar, modificado 7 Anos atrás.

JSON Web Service for document tag category update

Junior Member Postagens: 42 Data de Entrada: 14/11/16 Postagens Recentes
Hi everyone,
I am exploring JSON web services exposed by Liferay in "/api/jsonws" url. I want to know if its possible to update a document with a tag and category using such web service. But all exposed web services related to Tag and categories (such as update-category, add-tag etc. i.e part of AssetTag & AssetCategory) only refer to tags and category modification independent of their association with any asset.

Is there any web service which lists tags & categories associated with any asset (preferably document) ? Or do I have to go via portlet route for achieving the same ? This seems pretty decent requirement.

As per this thread, it seems tags and categories are intrinsically modified only through web services.

In case this is not possible through JSON web services, will below method be useful for updating document with tags and categories ?

updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)

Usage: Updating File


Thanks in advance
Sourabh