(批量抓取紀錄)刪除游標

information

本頁面使用機器翻譯而成。
機器翻譯免責聲明 (External link)

目錄

刪除游標

刪除您建立的游標。

URL

常規應用程式
https://sample.cybozu.com/k/v1/records/cursor.json
訪客空間的應用程式
https://sample.cybozu.com/k/guest/GUEST_SPACE_ID/v1/records/cursor.json

HTTP 方法

DELETE

所需存取權限

請求

參數
參數名稱 類型 必須 說明
id 字串 必須 游標ID
範例請求(如果要在網址中包含參數 )
URL

https://sample.cybozu.com/k/v1/records/cursor.json?id=9a9716fe-1394-4677-a1c7-2199a5d28215

標頭
1
2
3
{
  "X-Cybozu-API-Token": "API_TOKEN"
}

關於請求標頭,請參見 kintone REST API的通用規範

範例要求(如果要在要求內文中包含參數)
URL

https://sample.cybozu.com/k/v1/records/cursor.json

標頭
1
2
3
4
{
  "X-Cybozu-API-Token": "API_TOKEN",
  "Content-Type": "application/json"
}

關於請求標頭,請參見 kintone REST API的通用規範

內文
1
2
3
{
  "id": "9a9716fe-1394-4677-a1c7-2199a5d28215"
}

回應

1
{}

示例代碼

使用 curl 的請求
1
2
3
4
5
6
curl -X DELETE 'https://sample.cybozu.com/k/v1/records/cursor.json' \
  -H 'X-Cybozu-API-Token: API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "9a9716fe-1394-4677-a1c7-2199a5d28215"
  }'
發送kintone REST API請求 使用API 發送請求
1
2
3
4
5
const body = {
  id: '9a9716fe-1394-4677-a1c7-2199a5d28215'
};

await kintone.api(kintone.api.url('/k/v1/records/cursor.json', true), 'DELETE', body);