TokenLab

視頻與素材

更新素材資產群組

更新當前組織擁有的 Seedance 素材群組。

PUT
/v1/videos/assets/groups/{groupId}

更新素材群組的顯示名稱 (group_name)、description 或 metadata。請至少發送其中一項,否則請求將返回 400。真人群組會保留其已驗證的人物映射。如果群組中的素材仍在準備中,請求可能會返回 409;請稍後重試。

project_name 用於劃定組織內的資源範圍,預設值為 default。請對相關群組和資產使用相同的大小寫敏感值。在 POST/PUT 的 JSON 本文中發送,並在 GET/DELETE 的查詢字串中發送。

請求範例

curl https://api.tokenlab.sh/v1/videos/assets/groups/group-20260720123456-vrt01 \
  -X PUT \
  -H "Authorization: Bearer $TOKENLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"group_name":"Updated references","description":"Images approved for summer videos","project_name":"default"}'

回應範例

{
  "id": "group-20260720123456-vrt01",
  "object": "seedance.material_asset_group",
  "project_name": "default",
  "library_type": "aigc_avatar",
  "group_name": "Updated references",
  "description": "Images approved for summer videos",
  "status": "ACTIVE",
  "metadata": null,
  "created_at": 1782998400000,
  "updated_at": 1782998400000
}
curl -X PUT "https://example.com/v1/videos/assets/groups/group-20260720123456-vrt01" \  -H "Content-Type: application/json" \  -d '{    "group_name": "Updated references",    "description": "已批准用於夏季影片的圖片"  }'
{  "id": "group-20260720123456-vrt01",  "object": "seedance.material_asset_group",  "library_type": "aigc_avatar",  "group_name": "Updated references",  "description": "已批准用於夏季影片的圖片",  "status": "ACTIVE",  "metadata": null,  "created_at": 1782998400000}

授權

BearerAuth
AuthorizationBearer <token>

API Key 驗證。請在 Dashboard > API > API Keys 建立或管理 API 金鑰。

位置: header

路徑參數

groupId*string

請求主體

application/json

回應

application/json

application/json

application/json

application/json

application/json

application/json

application/json