I used function to create metadata with template. but it throw exception com.box.sdk.BoxAPIException: The API returned an error code: 404
createMetadata(typename, scope, metadata);
I used function to create metadata with template. but it throw exception com.box.sdk.BoxAPIException: The API returned an error code: 404
createMetadata(typename, scope, metadata);
I did this and it seems to work.
BoxFile file = new BoxFile(api, "113280761775");
file.createMetadata(new Metadata().add("/test", "test"));
Metadata metadata = file.getMetadata();
System.out.println("printing out meta-data: " + metadata.get("/test"));