Oracle WebCenter Sites (MOSC)

MOSC Banner

WebCenter Sites Rest Api

edited Sep 8, 2015 2:46PM in Oracle WebCenter Sites (MOSC) 5 commentsAnswered

Hello All!

How can I set a Locale in a new asset with REST Api??

I can create the asset but I need to set the locale and another blob attributes....

I need to set attributes using REST Api in WebCenter Sites. I have problems with blobs, dimensions and assets attributes..

To set String attributes I use this code and works fine:

........

com.fatwire.rest.beans.Attribute, com.fatwire.rest.beans.Attribute.Data........

sourceAssetAttr = new Attribute();

sourceAssetAttrData = new Data();

sourceAssetAttr.setName("test");

sourceAssetAttrData.setStringValue("value test");

sourceAssetAttr.setData(sourceAssetAttrData);

asset.getAttributes().add(sourceAssetAttr);

I have attached a XML file representing my asset.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center