# 更新素材资产组合信息

> 全部文档的索引见 [llms.txt](https://ark.volcengine.com/llms.txt)；在任一文档页面地址后追加 `.md` 可获取该页的 Markdown 版本。

`POST https://ark.cn-beijing.volcengineapi.com/?Action=UpdateAssetGroup&Version=2024-01-01`

更新单个 Asset Group（素材资产组合）信息。当前仅支持更新 Asset Group（素材资产组合）的 *Name* 和 *Description*。

## 鉴权

本接口支持鉴权方式如下，详情请参见 [Base URL 及鉴权](/docs/base-url-and-authentication)。

* Access Key 鉴权，请在 [Access Key 管理](https://console.volcengine.com/iam/keymanage) 页面，获取 Access Key。本接口仅支持 Access Key 鉴权。

---

<span id="request-parameters"></span>
## 请求参数

### Body 参数

**Id** `string` `必选` | 素材组 ID

需要更新的 Asset Group（素材资产组合）的 Id。通过创建素材资产组合接口 (CreateAssetGroup) 返回, 或通过 ListAssetGroups 接口查询获取。

**Description** `string` | 新描述

需要更新的 Asset Group（素材资产组合）的新描述，上限为 300 字符

**Name** `string` | 新名称

需要更新的 Asset Group（素材资产组合）的新名称，上限为 64 个字符

**ProjectName** `string` `默认值 default` | 所属项目

需要更新的 Asset Group（素材资产组合）所属的项目名称。若资源不在默认项目中，需填写正确的项目名称。

## 响应参数

**Id** `string` | 素材组 ID

Asset Group（素材资产组合）的 Id


## 代码示例

## 默认

### cURL

#### Request

```bash
curl 'https://ark.cn-beijing.volcengineapi.com/?Action=UpdateAssetGroup&Version=2024-01-01' \
  -H 'Content-Type: application/json' \
  -H 'X-Date: <X-Date>' \
  -H 'X-Content-Sha256: <X-Content-Sha256>' \
  -H 'Authorization: HMAC-SHA256 Credential=<AK>/<X-Date>/cn-beijing/ark/request, SignedHeaders=content-type;host;x-content-sha256;x-date, Signature=<Signature>' \
  -d '{
    "Id": "group-20240514212750-b5e9m",
    "Name": "demo-portrait-group-renamed",
    "Description": "更新后的虚拟人像素材组描述",
    "ProjectName": "default"
}
'
```

#### Response

```
{
    "ResponseMetadata": {
        "RequestId": "202405142130004D5E6F708192031A2B",
        "Action": "UpdateAssetGroup",
        "Version": "2024-01-01",
        "Service": "ark",
        "Region": "cn-beijing"
    },
    "Result": {
        "Id": "group-20240514212750-b5e9m"
    }
}
```
