增加保护范围
POST {{base_url}}/sheets/v2/spreadsheets/:spreadsheetToken/protected_dimension
该接口用于根据 spreadsheetToken 和维度信息增加多个保护范围;单次操作不超过5000行或列。
参考接口文档:增加保护范围
Request Body
{"addProtectedDimension"=>[{"dimension"=>{"sheetId"=>"1QXD0s", "majorDimension"=>"COLUMNS", "startIndex"=>10, "endIndex"=>13}, "lockInfo"=>"你能编辑"}]}
RESPONSES
status: OK
{"code":0,"data":{"addProtectedDimension":[{"dimension":{"endIndex":13,"majorDimension":"COLUMNS","sheetId":"1QXD0s","startIndex":10},"editors":[6886024159147737089],"lockInfo":"你能编辑","protectId":"7034065500711796764"}]},"msg":"success"}