sdk.AppPermissionApi().insertByAppIdAndPermissionId({ appId:"" , permissionId:"" }).then(function(result) { alert("success"); } );