public static BoxMetadataCascadePolicy.Info create(final BoxAPIConnection api, String folderID, String scope,
                                                       String templateKey) {
        URL url = GET_ALL_METADATA_CASCADE_POLICIES_URL_TEMPLATE.build(api.getBaseURL());
        BoxJSONRequest request = new BoxJSONRequest(api, url, "POST");
        JsonObject requestJSON = new JsonObject()
                .add("folder_id", folderID)
                .add("scope", scope)
                .add("templateKey", templateKey);
        request.setBody(requestJSON.toString());
        BoxJSONResponse response = (BoxJSONResponse) request.send();
        JsonObject responseJSON = JsonObject.readFrom(response.getJSON());
        BoxMetadataCascadePolicy createdMetadataCascadePolicy = new BoxMetadataCascadePolicy(api,
                responseJSON.get("id").asString());
        return createdMetadataCascadePolicy.new Info(responseJSON);
    }
public static BoxMetadataCascadePolicy . Info create ( final BoxAPIConnection api , String folderID , String scope , String templateKey ) { URL url = GET_ALL_METADATA_CASCADE_POLICIES_URL_TEMPLATE . build ( api . getBaseURL ( ) ) ; BoxJSONRequest request = new BoxJSONRequest ( api , url , "POST" ) ; JsonObject requestJSON = new JsonObject ( ) . add ( "folder_id" , folderID ) . add ( "scope" , scope ) . add ( "templateKey" , templateKey ) ; request . setBody ( requestJSON . toString ( ) ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject responseJSON = JsonObject . readFrom ( response . getJSON ( ) ) ; BoxMetadataCascadePolicy createdMetadataCascadePolicy = new BoxMetadataCascadePolicy ( api , responseJSON . get ( "id" ) . asString ( ) ) ; return createdMetadataCascadePolicy . new Info ( responseJSON ) ; }
Creates a new Metadata Cascade Policy on a folder.

@param api         the API connection to be used by the resource.
@param folderID    the ID of the folder to create a metadata cascade policy on.
@param scope       the scope of the metadata cascade policy.
@param templateKey the key of the template.
@return information about the Metadata Cascade Policy.