Video
Update an asset
Update an asset name or move it to another group.
Availability
Section titled “Availability”This page documents the Modelflare asset-management route. Calls require a valid media API key, an available media channel, and the required permission.
Endpoint
Section titled “Endpoint”POST https://modelflare.dev/volc/asset/UpdateAsset
Authentication
Section titled “Authentication”Use a Modelflare API key:
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"Send Idempotency-Key with create, update, and delete requests. Retrying the same key for the same user replays the saved response without repeating the mutation.
Request
Section titled “Request”Update an asset name or move it to another group.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Id |
string |
Yes | Asset ID. | asset-20260528140922-d9646 |
Name |
string |
No | New asset name. | updated-character-reference |
GroupId |
string |
No | Destination group ID. | group-20260320141746-zsf6b |
model |
string |
No | Billing model. Defaults to volc-asset. |
volc-asset |
JSON example:
{ "model": "volc-asset", "Id": "asset-20260528140922-d9646", "Name": "updated-character-reference", "GroupId": "group-20260320141746-zsf6b"}cURL example:
curl --request POST https://modelflare.dev/volc/asset/UpdateAsset \ --header "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "model": "volc-asset", "Id": "asset-20260528140922-d9646", "Name": "updated-character-reference", "GroupId": "group-20260320141746-zsf6b"}'Response
Section titled “Response”The request succeeded.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
Id |
string |
Yes | Asset ID. | asset-20260528140922-d9646 |
Name |
string |
No | Updated asset name. | updated-character-reference |
GroupId |
string |
No | Asset group ID. | group-20260320141746-zsf6b |
UpdateTime |
string |
No | Update timestamp. | 2026-05-28T06:09:31Z |
Response example:
{ "Id": "asset-20260528140922-d9646", "Name": "updated-character-reference", "GroupId": "group-20260320141746-zsf6b", "UpdateTime": "2026-05-28T06:09:31Z"}Errors
Section titled “Errors”| Status | Meaning |
|---|---|
400 |
The request is invalid. |
401 |
The API key is missing or unauthorized. |
Error body example (when returned):
{ "error": { "code": "invalid_request", "message": "Request validation failed." }}Image, video, and audio creation are asynchronous. After receiving an asset ID, call GetAsset and use the asset://<ID> reference only when the status is Active.