I am trying to change the title of one of the document libraries programatically with JSOM.
This is the code but it is not working... any ideas?
function UpdateDocumentLibraryName(oNewWebsite) {
var oList = oNewWebsite.get_lists().getByTitle('Documentos');
oList.set_title = 'Contenidos Pedagogia';
oList.update();
context.load(oList);
}