view.setName( schema-name as String, view-name as String, new-name as String ) as null
This function renames the named view in the named schema specification.
const view = require('/MarkLogic/views'); view.setName('main', 'songs', 'tunes'); // Renames the 'songs' view in the 'main' schema to 'tunes'.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.