# 更新素材

更新素材的名称。仅可修改当前用户拥有的素材。

## PUT /v1/assets/{assetId}

> Update asset

Update the name of an asset. Only assets owned by the current user can be modified.

### Authentication

`Authorization: Bearer tr-xxx`

### Path Parameters

- **assetId** `string` **(required)**  
  Asset ID

### Request Body

Content-Type: `application/json`

- **name** `string`  
  New asset name

### Response

- **Id** `string`  
  Asset ID. Can be referenced in video generation and other endpoints using `asset://<Id>` format
- **Name** `string`  
  Asset name
- **AssetType** ``Image` | `Video` | `Audio``  
  Asset type
- **Status** ``Active` | `Processing` | `Failed``  
  Asset processing status:
- **GroupId** `string`  
  Parent group ID
- **URL** `string`  
  Asset file URL
- **CreateTime** `string`  
  Creation time
- **UpdateTime** `string`  
  Last updated time
- **Error** `object`  
  Error information. Only present when `Status: Failed`
- **Error.Code** `string`  
  Error code
- **Error.Message** `string`  
  Error description

### Error Codes

- `400`: 
- `401`: 
- `404`: Asset not found or does not belong to the current user
- `429`:
