0

I'm trying to update one cell that has CheckBox data type. Is there any way to set CheckBox to state Checked trough the API? Can't find any c# example...

SkyDancer
  • 119
  • 4
  • 11

1 Answers1

2

Checking or unchecking checkboxes with the Google Sheets API is equivalent to updating the cell values to the booleans true and false.

  • Use the method spreadsheets.values.update
  • Base your request on the featured example code for C#
  • I am not an expert in C#, but the value range in your request body should look something like this:
var list = new List<object>() { true };
requestBody.Values = new List<IList<object>> { list };

Reference for updating vlaues in C#:

ziganotschka
  • 23,638
  • 2
  • 14
  • 29