sdk.AccountPermissionApi().insertAccountPermission({ accountId:"" , permissionId:"" }).then(function(result) { alert("success"); } );