I want to use Looker JavaSDK to update userAttribute. The code used UserAttributeApi to get one userAttribute. Then, I used setLabel() function to change label and called the function updateUserAttribute() to update the object. However, I got the Api Exception
"com.looker.api3client.ApiException: {“message”:“Not found”,“documentation_url”:"http://docs.looker.com/"}"
See the source code as below
Long userAttributeId = new Long(17);
UserAttributeApi userAttributeApi = new UserAttributeApi(lookerApiClient);
UserAttribute userAttribute = userAttributeApi.userAttribute(userAttributeId,null);
userAttribute.setLabel("Test Label");
userAttributeApi.updateUserAttribute(userAttributeId,userAttribute,null);