src/rest_client.js
async function createWorksheet(sheetId, worksheetTitle, options) {
    options = Object.assign({ title: worksheetTitle }, options);

    let payload = api.converter.createWorksheetRequest(options);
    let response = await executeRequest('create_worksheet', {
        body: payload,
        sheetId: sheetId
    });

    cache.clear();

    // converts worksheetData to model
    return api.converter.workSheetInfoResponse(response);
}
async function createWorksheet(sheetId, worksheetTitle, options) {
    options = Object.assign({ title: worksheetTitle }, options);

    let payload = api.converter.createWorksheetRequest(options);
    let response = await executeRequest('create_worksheet', {
        body: payload,
        sheetId: sheetId
    });

    cache.clear();

    // converts worksheetData to model
    return api.converter.workSheetInfoResponse(response);
}
async function createWorksheet ( sheetId , worksheetTitle , options ) { options = Object . assign ( { title : worksheetTitle } , options ) ; let payload = api . converter . createWorksheetRequest ( options ) ; let response = await executeRequest ( 'create_worksheet' , { body : payload , sheetId : sheetId } ) ; cache . clear ( ) ; // converts worksheetData to model return api . converter . workSheetInfoResponse ( response ) ; }
Creates the specific worksheet

@param {string} sheetId ID of the sheet
@param {string} worksheetTitle name of the worksheet to be created
@param {object} options
Creates the specific worksheet