更新組代碼

information

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

目錄

更新組代碼

更新組代碼。
您一次最多可以更新 100 個組。

有關導入 CSV 檔的 API 的更多資訊,請參閱 導入組

URL

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

HTTP 方法

PUT

所需許可權

  • cybozu.com共通管理員

請求

參數
參數名稱 必須 說明
codes 陣列 必須 群組代碼1
codes[].currentCode 字串 必須
群組代碼1
指定不超過 128 個字元。
不能指定空格或僅指定空格。
codes[].newCode 字串 必須 更新了組代碼
指定不超過 128 個字元。
不能指定空格或僅指定空格。
示例請求
頁眉
1
2
3
4
{
  "X-Cybozu-Authorization": "QWRtaW5pc3RyYXRvcjpjeWJvenU=",
  "Content-Type": "application/json"
}

有關請求頭的詳細資訊,請參閱 通用使用者 API 規範

身體
1
2
3
4
5
6
7
8
{
  "codes": [
    {
      "currentCode": "recruit2023",
      "newCode": "Recruit2023"
    }
  ]
}

回應

1
{}

示例代碼

使用 curl 的請求
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
curl -X PUT 'https://sample.cybozu.com/v1/groups/codes.json' \
  -H 'X-Cybozu-Authorization: QWRtaW5pc3RyYXRvcjpjeWJvenU=' \
  -H 'Content-Type: application/json' \
  -d '{
        "codes": [
          {
            "currentCode": "recruit2023",
            "newCode": "Recruit2023"
          }
        ]
  }'

限制

  • cybozu.com 不建議您在「管理通用」 中執行以下操作並並行執行API。
    • 群組設置螢幕上的各項操作
    • 從檔案匯入