Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addNamedRangeRequest is invalid #680

Open
s-wada-np opened this issue Mar 12, 2024 · 0 comments
Open

addNamedRangeRequest is invalid #680

s-wada-np opened this issue Mar 12, 2024 · 0 comments

Comments

@s-wada-np
Copy link

wrong

async addNamedRange(
/** name of new named range */
name: string,
/** GridRange object describing range */
range: GridRange,
/** id for named range (optional) */
namedRangeId?: string
) {
// TODO: add named range to local cache
return this._makeSingleUpdateRequest('addNamedRange', {
name,
namedRangeId,
range,
});
}

right

 async addNamedRange( 
   name: string, 
   range: GridRange, 
   namedRangeId?: string 
 ) { 
   return this._makeSingleUpdateRequest('addNamedRange', {
     namedRange: { 
       name, 
       namedRangeId, 
       range, 
     }
    }); 
 } 

spec
https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/request?hl=en#AddNamedRangeRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant