TokenLab

Video & tư liệu

Cập nhật Nhóm Tài nguyên Vật liệu

Cập nhật một nhóm vật liệu Seedance thuộc sở hữu của tổ chức hiện tại.

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

Cập nhật tên hiển thị, mô tả hoặc metadata cho một nhóm vật liệu. Đối với các nhóm người thật được quản lý, việc ánh xạ người đã xác minh sẽ không thay đổi.

project_name tách biệt tài nguyên trong tổ chức đã xác thực. Mặc định là default; dùng cùng một giá trị phân biệt chữ hoa, chữ thường cho nhóm và tài nguyên liên quan. Gửi trong nội dung JSON với POST/PUT và tham số truy vấn với GET/DELETE.

Ví dụ Yêu cầu

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"}'

Ví dụ Phản hồi

{
  "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
}
curl -X PUT "https://example.com/v1/videos/assets/groups/group-20260720123456-vrt01" \  -H "Content-Type: application/json" \  -d '{    "group_name": "Updated references",    "description": "Hình ảnh đã được phê duyệt cho video mùa hè"  }'
{  "id": "group-20260720123456-vrt01",  "object": "seedance.material_asset_group",  "library_type": "aigc_avatar",  "group_name": "Updated references",  "description": "Hình ảnh đã được phê duyệt cho video mùa hè",  "status": "ACTIVE",  "metadata": null,  "created_at": 1782998400000}

Xác thực

BearerAuth
AuthorizationBearer <token>

Xác thực bằng Khóa API. Tạo hoặc quản lý khóa API trong Dashboard > API > API Keys.

Vị trí: header

Tham số đường dẫn

groupId*string

Nội dung yêu cầu

application/json

Phản hồi

application/json

application/json

application/json

application/json

application/json

application/json