刪除群組

information

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

目錄

刪除群組

刪除該群組。
您一次最多可以刪除 100 個群組。

有關導入CSV檔的API的詳細內容,請參考以下頁面。
匯入群組資訊

URL

https://sample.cybozu.com/v1/groups.json

HTTP 方法

DELETE

所需存取權限

cybozu.com共通管理員 (External link)

請求

參數
參數名稱 類型 必須 說明
codes 字串 必須 群組代碼
不會刪除前後的空格。
示例請求
標頭

使用API權杖時,需要權限範圍為「Read and Write」 或更高權限範圍的權杖。

1
2
3
4
{
  "Authorization": "Bearer API_TOKEN",
  "Content-Type": "application/json"
}

有關請求頭的更多資訊,請參閱以下頁面。
User API 通用規範

內文
1
2
3
{
  "codes": ["Recruit2013"]
}

示例代碼

使用 curl 的請求

根據您的環境,curl 的格式可能會有所不同。
有關說明,請參閱以下頁面。
使用curl命令執行kintone REST API/3.執行API

1
2
3
4
5
6
curl -X DELETE 'https://sample.cybozu.com/v1/groups.json' \
  -H 'Authorization: Bearer API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
        "codes": ["Recruit2013"]
      }'

回應

1
{}

限制

  • 無法刪除內置組(「Everyone」和「Administrators」)。
  • 不建議在cybozu.com共通管理中執行以下操作並行執行 API:
    • 群組設置畫面上的各項操作
    • 從檔案匯入