I am trying to attach custom metadata to an object that I put. I am doing exactly as said in the REST Developer Guide and using this kind of url:
String url = "http://ns01.tn01.hcp01.hitachi.com/rest/examples/world.txt?" + "type=custom-metadata&annotation=myannotation";
to bind the metadata to the object but I am getting bad request error.
What I exactly did was:
1- Putting the object (successfully done)
2- Using the put method again and trying to bind the metadata (unsuccessful)
What might be the problem?