HOW TO UPDATE FILE FOR PARTICULAR TEMPLATE NAME IN BOX?
Hi,
I want to update file for particular template name. I have created template name Test. It has attribute Name,age. I want to update file for particular template.
See the below code:
BoxFile file = new BoxFile(api, "removed for privacy57");
Metadata data= new Metadata();
data.replace("/age", "35");
file.createMetadata("Test",data);
It is give Error like
Exception in thread "main" com.box.sdk.BoxAPIException: The API returned an error code: 404
at com.box.sdk.BoxAPIResponse.(BoxAPIResponse.java:69)
at com.box.sdk.BoxJSONResponse.(BoxJSONResponse.java:30)
Please provide me update resuts.
Please sign in to leave a comment.
Comments
0 comments