POST https://art-api.yuyuflow.com/?Action=UpdateAssetGroup&Version=2024-01-01
更新单个 Asset Group(素材资产组合)信息。当前仅支持更新 Asset Group(素材资产组合)的 Name 和 Description。
鉴权说明
本接口仅支持 Access Key(AK/SK)鉴权。
请求参数
请求体
Id string 必选
需要更新的 Asset Group(素材资产组合)的 Id。
Name string
需要更新的 Asset Group(素材资产组合)的新名称,上限为 64 个字符。
Description string
需要更新的 Asset Group(素材资产组合)的新描述,上限为 300 字符。
ProjectName string
需要更新的 Asset Group(素材资产组合)所属的项目名称,默认值为default。
若资源不在默认项目中,需填写正确的项目名称,获取项目名称,请查看 文档。
响应参数
Id string
Asset Group(素材资产组合)的 Id。
请求示例
text
POST /?Action=UpdateAssetGroup&Version=2024-01-01 HTTP/1.1
Host: art-api.yuyuflow.com
Content-Type: application/json
X-Date: 20260328T000000Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=AKLTYz******/20260328/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=47a7d934******e41085f
{
"Id": "group-2026**********-*****",
"Name": "new-name",
"Description": "new-description",
"ProjectName": "default"
}响应示例
json
{
"ResponseMetadata": {
"RequestId": "20260328000000000000000000000000",
"Action": "UpdateAssetGroup",
"Version": "2024-01-01",
"Service": "ark",
"Region": "cn-beijing"
},
"Result": {
"Id": "group-2026**********-*****"
}
}
