I want to add a filter to the header in my google sheet. I found THIS ANSWER using C# and tried to build the JSON from it. This is what I come up with but no luck :
{'AddFilterViewRequest' : {
'AddFilterViewResponse': {
'Filter' : {
'FilterView': {
'title' : "Hide rows with errors",
'range': {'sheetId': sheet_id,
'startRowIndex': 0,
'endRowIndex': 2,
'startColumnIndex': 1,
'endColumnIndex': 31}
}
}
}
}}
Anyone knows what I'm going wrong?
From the Google Sheets API documentation:
I haven't tried using a filter myself but it seems like the keys
AddFilterViewRequest
,AddFilterViewRequest
andFilter
aren't required.