Skip to content

更新分組名稱 ​

按分組 ID 修改分組名稱。

介面定義:ApiFox POST · 核對日期:2026-10-21。

請求 ​

http
POST /api/updateGroup

使用客戶端 API 頁面顯示的服務地址和 api-key。示例埠 9000 僅作演示,必須替換為實際埠;認證說明見 概述。

JSON 請求體 ​

引數型別必填說明
idinteger是分組 ID,從分組列表獲取
namestring是名稱

cURL 示例 ​

bash
curl --request POST 'http://127.0.0.1:9000/api/updateGroup' \
  --header 'api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "name": "new name"
}'

響應示例 ​

json
{
  "success": true
}

請求失敗時同時檢查 HTTP 狀態碼與響應中的錯誤資訊,見 錯誤碼與排查。