Xoá các giá trị khỏi một bảng tính. Phương thức gọi phải chỉ định mã nhận dạng bảng tính và dải ô. Chỉ các giá trị bị xóa -- tất cả các thuộc tính khác của ô (chẳng hạn như định dạng, xác thực dữ liệu, v.v.) đều được giữ lại.
Yêu cầu HTTP
POST https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:clear
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON
{"spreadsheetId": string,"clearedRange": string}
Trường
spreadsheetId
string
Bảng tính áp dụng nội dung cập nhật.
clearedRange
string
Dải ô (trong ký hiệu A1) đã bị xoá. (Nếu yêu cầu dành cho một dải ô không bị giới hạn hoặc một dải ô lớn hơn giới hạn của trang tính, thì đây sẽ là dải ô thực tế đã được xoá và giới hạn trong giới hạn của trang tính.)
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-09-05 UTC."],[[["Clears values from a specified spreadsheet and range while preserving formatting and other cell properties."],["Requires the spreadsheet ID and range in the request URL."],["Sends an empty request body and receives a response indicating the spreadsheet ID and cleared range."],["Needs authorization with specific OAuth scopes like `https://www.googleapis.com/auth/spreadsheets` or similar."]]],["To clear values in a spreadsheet, send a `POST` request to `https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:clear`. Include the `spreadsheetId` and `range` as path parameters. The request body must be empty. A successful response will contain the `spreadsheetId` and the `clearedRange` in the response body. This operation requires specific authorization scopes like `drive`, `drive.file`, or `spreadsheets`.\n"]]