Update Profile Extension Attributes
Fani Avg 03/29/2012 04:16 AM
Profiles 3.0.1 All platforms
I have created a profile extension attribute cmpCountry and i want to update it programmatically. I used the following code :
String url ="https://mysrv/profiles/atom/profileExtension.email@example.com&extensionId=cmpCountry";
PutMethod putMethod=new PutMethod(url);
putMethod.setRequestEntity(new StringRequestEntity("test", "text/plain", "UTF-8"));
but i get a bad request error. I saw the example in wikis and i successfully executed but i couldn't find the right request for plain text. Can anyone tell me what i'm doing wrong?