يؤدي إلى محو القيم من جدول بيانات. يجب أن يحدد المتصل معرِّف جدول البيانات والنطاق. يتم محو القيم فقط -- يتم الاحتفاظ بجميع خصائص الخلية الأخرى (مثل التنسيق والتحقق من صحة البيانات وما إلى ذلك).
طلب HTTP
POST https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range}:clear
إذا كانت الاستجابة ناجحة، سيحتوي نص الاستجابة على بيانات بالبنية التالية:
تمثيل JSON
{"spreadsheetId": string,"clearedRange": string}
الحقول
spreadsheetId
string
جدول البيانات الذي تم تطبيق التعديلات عليه.
clearedRange
string
النطاق (في تدوين A1) الذي تم محوه. (إذا كان الطلب بخصوص نطاق غير محدود أو نطاق أوسع من حدود ورقة البيانات، سيكون هذا هو النطاق الفعلي الذي تم محوه ويقتصر على حدود الورقة).
نطاقات الأذونات
يتطلب هذا الإعداد أحد نطاقات OAuth التالية:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/spreadsheets
لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.
تاريخ التعديل الأخير: 2024-09-05 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2024-09-05 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]